/* =========================================================
   EDUkalEDAD Online - Master Style Sheet
   Colors based on the Official Logo (Blue, Gold, Cream)
   Designed for Elders (Large fonts, high contrast, clean UI)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Root variables */
:root {
    --nc-blue: #27559e; /* Navy blue from the border and banner */
    --nc-blue-light: #3a75d5;
    --nc-blue-dark: #123466;

    --nc-gold: #dda941; /* Gold from the stars and border elements */
    --nc-gold-light: #f5cf74;
    --nc-gold-dark: #b88628;

    --bg-light: #fefcf5; /* Warm off-white background matching the shield */
    --card-bg: #ffffff;

    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-muted: #5e6c7a;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef3f8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    text-align: center;
}

/* Background accents representing the gold and blue */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

body::before {
    width: 600px;
    height: 600px;
    background: var(--nc-blue-light);
    top: -200px;
    right: -100px;
}

body::after {
    width: 500px;
    height: 500px;
    background: var(--nc-gold-light);
    bottom: -150px;
    left: -150px;
}

/* Common Container/Card Style */
.main-card {
    background: var(--card-bg);
    padding: 50px 60px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.08),
        inset 0 0 0 4px rgba(221, 169, 65, 0.15); /* Subtle gold inner ring */
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

/* Logo Styles */
.nc-logo-sm {
    max-width: 90px;
    height: auto;
    margin-bottom: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.edukaledad-logo-lg {
    max-width: 250px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.edukaledad-logo-lg:hover {
    transform: scale(1.05);
}

/* Typography */
h1 {
    color: var(--nc-blue);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

h2.page-title {
    color: var(--nc-blue-dark);
    font-size: 34px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--nc-gold), transparent);
    border-radius: 2px;
}

p.instruction {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 40px;
}

p.school-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--nc-blue-dark);
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Button Styles */
.btn-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.main-btn {
    flex: 1;
    min-width: 250px;
    padding: 24px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s;
}

.main-btn:hover::before {
    opacity: 1;
}

.main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.main-btn:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Specific Button Colors based on Logo */
.register-btn {
    background: linear-gradient(135deg, var(--nc-gold-light), var(--nc-gold));
    color: var(--nc-blue-dark); /* Dark text for better contrast on gold */
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    border-bottom: 6px solid var(--nc-gold-dark);
}

.login-btn {
    background: linear-gradient(135deg, var(--nc-blue-light), var(--nc-blue));
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-bottom: 6px solid var(--nc-blue-dark);
}

/* Form Elements (para sa create_account.html) */
.form-group {
    margin-bottom: 25px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

label {
    font-size: 18px;
    font-weight: 700;
    color: var(--nc-blue);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

input,
select {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

input::placeholder, select::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus {
    border-color: var(--nc-gold);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(221, 169, 65, 0.2);
}

#saveBtn {
    background: linear-gradient(135deg, var(--nc-blue-light), var(--nc-blue));
    color: white;
    width: 100%;
    max-width: 500px;
    border-bottom: 6px solid var(--nc-blue-dark);
    margin-top: 20px;
    padding: 20px;
    font-size: 24px;
}

#saveBtn:hover {
    box-shadow: 0 10px 25px rgba(42, 85, 158, 0.4);
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-card {
        padding: 40px 30px;
    }
    
    p.instruction {
        font-size: 22px;
    }
    
    .btn-container {
        flex-direction: column;
    }
    
    .main-btn {
        padding: 20px;
        font-size: 18px;
    }
}

/* ── ITAGO ANG AUTOMATIC PASSWORD ICON NG BROWSER (EDGE) ── */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}
