/* auth.css — EnfocaKids Login & Registro */
/*
Kid-Friendly Palette:
GRASS  #2BB39B  |  SKY    #82B3E1
CANDY  #F5B5CC  |  CRAYON #EB5E5A
SUN    #FBB92A  |  STAR   #FAF5EE
*/

/* ---------- Variables ---------- */
:root {
    --grass: #2BB39B;
    --sky: #82B3E1;
    --candy: #F5B5CC;
    --crayon: #EB5E5A;
    --sun: #FBB92A;
    --star: #FAF5EE;
    --deep-green: #1E8A73;
    --light-mint: #D4F0EA;
    --soft-sky: #D6E6F7;
    --white: #ffffff;
    --text-dark: #2D3436;
    --text-muted: #636E72;
}

/* ---------- Ocultar header/footer del layout global ---------- */
.enfocakids-topbar,
footer,
.footer-enfocakids { display: none !important; }

/* ---------- Body override para auth ---------- */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: linear-gradient(140deg, var(--star) 0%, var(--light-mint) 40%, var(--soft-sky) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------- Auth Page Container ---------- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    padding: 0 16px;
    overflow: hidden;
}

/* ---------- Auth Card ---------- */
.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(43, 179, 155, 0.12);
    padding: 32px 36px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    border: 1px solid rgba(43, 179, 155, 0.08);
    position: relative;
}

/* ---------- Back Link ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.3s, transform 0.3s;
}
.back-link:hover {
    color: var(--grass);
    transform: translateX(-3px);
}
.back-link i { font-size: 0.8rem; }

/* ---------- Brand Area ---------- */
.brand-area {
    text-align: center;
    margin-bottom: 28px;
}

/* Icon + Title inline row */
.brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-title h2 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.brand-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Form Styles ---------- */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sky);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s;
}

.form-control {
    width: 100%;
    padding: 13px 16px 13px 42px;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    background: var(--star);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}
.form-control::placeholder {
    color: #B0B8C1;
}
.form-control:focus {
    border-color: var(--grass);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(43, 179, 155, 0.12);
}
.form-control:focus + i,
.input-icon-wrapper:focus-within i {
    color: var(--grass);
}

/* ---------- Submit Button ---------- */
.btn-submit,
.btn-enfocakids {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-family: 'Outfit', 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--grass), var(--deep-green));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.35s ease;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(43, 179, 155, 0.25);
    letter-spacing: 0.02em;
}
.btn-submit:hover,
.btn-enfocakids:hover {
    background: linear-gradient(135deg, var(--sun), #E5A620);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(251, 185, 42, 0.35);
}
.btn-submit:active,
.btn-enfocakids:active {
    transform: translateY(0);
}
.btn-submit:disabled,
.btn-enfocakids:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Auth Footer (Switch link) ---------- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--grass);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}
.auth-footer a:hover {
    color: var(--sun);
    text-decoration: underline;
}

/* ---------- Decorative Accents ---------- */
.auth-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 20%;
    right: 20%;
    height: 4px;
    background: linear-gradient(90deg, var(--grass), var(--sky), var(--sun), var(--candy));
    border-radius: 4px 4px 0 0;
}

/* ---------- Responsive ---------- */

/* Mobile small */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
        margin: 8px;
    }
    .brand-title h2 { font-size: 1.4rem; }
    .brand-logo { width: 36px; height: 36px; }
}

/* Desktop/Laptop */
@media (min-width: 768px) {
    .auth-card {
        padding: 36px 40px;
    }
    .brand-title h2 { font-size: 1.7rem; }
    .brand-logo { width: 48px; height: 48px; }
}

/* Short laptop screens (height <= 700px) */
@media (max-height: 700px) {
    .auth-card {
        padding: 14px 28px 16px;
        max-height: 96vh;
    }
    .back-link { margin-bottom: 8px; font-size: 0.8rem; }
    .brand-area {
        margin-bottom: 10px;
    }
    .brand-logo { width: 30px; height: 30px; }
    .brand-title h2 { font-size: 1.15rem; margin-bottom: 0; }
    .brand-title { margin-bottom: 2px; gap: 8px; }
    .brand-area p { font-size: 0.78rem; margin-bottom: 0; }
    .form-group { margin-bottom: 8px; }
    .form-group label { font-size: 0.78rem; margin-bottom: 3px; }
    .form-control { padding: 9px 12px 9px 36px; font-size: 0.85rem; border-radius: 10px; }
    .input-icon-wrapper i { font-size: 0.78rem; left: 12px; }
    .btn-submit, .btn-enfocakids { padding: 10px; font-size: 0.88rem; margin-top: 4px; border-radius: 10px; }
    .auth-footer { margin-top: 10px; font-size: 0.8rem; }
}

