* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #169978;
    --primary-dark: #0f725a;
    --primary-light: #e9f8f3;

    --text: #18302a;
    --muted: #687a75;

    --border: #dce8e4;

    --background: #f5f9f7;

    --danger: #b84444;
}

body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);
}

button,
input {
    font-family: inherit;
}

.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1fr
        1fr;
}


/* ======================================================
   BRAND SIDE
====================================================== */

.login-brand {
    padding:
        70px
        clamp(40px, 7vw, 100px);

    background:
        linear-gradient(
            145deg,
            #123d34,
            #176f5c
        );

    color: white;

    display: flex;
    flex-direction: column;

    justify-content: center;
}

.brand-logo {
    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: white;

    color:
        var(--primary-dark);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 25px;
    font-weight: 900;

    margin-bottom: 12px;
}

.brand-name {
    font-size: 22px;
    font-weight: 900;

    margin-bottom: 40px;
}

.login-brand h1 {
    max-width: 550px;

    font-size:
        clamp(40px, 5vw, 62px);

    line-height: 1.04;

    letter-spacing: -2px;

    margin-bottom: 22px;
}

.login-brand > p {
    max-width: 540px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 18px;

    line-height: 1.65;

    margin-bottom: 32px;
}

.benefits {
    display: grid;

    gap: 14px;
}

.benefits div {
    display: flex;

    gap: 10px;

    align-items: center;

    color:
        rgba(255, 255, 255, 0.9);
}

.benefits span {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.14);

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 900;
}


/* ======================================================
   FORM SIDE
====================================================== */

.login-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px 25px;
}

.login-card {
    width:
        min(440px, 100%);
}

.back-link {
    display: inline-block;

    margin-bottom: 34px;

    color:
        var(--primary-dark);

    text-decoration: none;

    font-weight: 700;
}

.small-tag {
    display: inline-block;

    margin-bottom: 11px;

    padding:
        7px 11px;

    border-radius: 999px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-size: 12px;

    font-weight: 800;
}

.login-card h2 {
    font-size: 37px;

    letter-spacing: -1px;

    margin-bottom: 8px;
}

.form-description {
    color:
        var(--muted);

    margin-bottom: 27px;
}

.field {
    margin-bottom: 17px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 800;
}

.field input {
    width: 100%;

    padding:
        14px 15px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background: white;

    color:
        var(--text);

    outline: none;

    font-size: 16px;
}

.field input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(22, 153, 120, 0.1);
}

.main-button {
    width: 100%;

    margin-top: 4px;

    padding: 15px;

    border: none;

    border-radius: 11px;

    background:
        var(--primary);

    color: white;

    font-size: 15px;

    font-weight: 900;

    cursor: pointer;
}

.main-button:hover {
    background:
        var(--primary-dark);
}

.form-error {
    min-height: 20px;

    margin-bottom: 7px;

    color:
        var(--danger);

    font-size: 13px;

    font-weight: 700;
}

.form-switch {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 24px;

    color:
        var(--muted);

    font-size: 14px;
}

.form-switch button {
    border: none;

    background: transparent;

    color:
        var(--primary-dark);

    font-weight: 800;

    cursor: pointer;
}

.local-warning {
    margin-top: 34px;

    padding: 14px 16px;

    border:
        1px solid #eadfbf;

    border-radius: 12px;

    background:
        #fffaf0;

    font-size: 12px;
}

.local-warning strong {
    display: block;

    margin-bottom: 3px;
}

.local-warning p {
    color:
        var(--muted);
}

.hidden {
    display: none;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 850px) {

    .login-page {
        grid-template-columns:
            1fr;
    }

    .login-brand {
        padding:
            45px
            25px;
    }

    .login-brand h1 {
        font-size: 40px;
    }

    .login-brand > p {
        font-size: 16px;
    }

}

@media (max-width: 500px) {

    .login-panel {
        padding:
            35px
            20px;
    }

    .login-card h2 {
        font-size: 31px;
    }

}

/* ======================================================
   LOGO OFICIAL NANO
====================================================== */
.login-logo-container { display:flex; align-items:center; margin-bottom:40px; }
.nano-login-logo { display:block; width:190px; height:auto; object-fit:contain; }
@media (max-width:850px) { .nano-login-logo { width:165px; } }
/* ======================================================
   RECUPERAR CONTRASEÑA
====================================================== */

.forgot-password-button {

    display: block;

    margin-top: -5px;
    margin-bottom: 16px;

    margin-left: auto;

    border: none;

    background: transparent;

    color:
        var(--primary-dark);

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;
}


.forgot-password-button:hover {

    text-decoration: underline;
}


.form-success {

    min-height: 20px;

    margin-bottom: 10px;

    color:
        var(--primary-dark);

    font-size: 13px;

    font-weight: 700;
}
/* ======================================================
   CONFIRMACIÓN DE CUENTA
====================================================== */

.confirmation-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: rgba(30, 160, 100, 0.12);

    color: #15965f;

    font-size: 32px;
    font-weight: 900;
}


#emailConfirmationView {
    text-align: center;
}


#emailConfirmationView h2 {
    margin-top: 12px;
}


.confirmation-box {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin: 24px 0 18px;
    padding: 18px;

    border: 1px solid rgba(30, 160, 100, 0.2);
    border-radius: 14px;

    background: rgba(30, 160, 100, 0.06);

    text-align: left;
}


.confirmation-box strong {
    font-size: 13px;
}


.confirmation-box span {
    color: #15965f;

    font-size: 15px;
    font-weight: 800;

    overflow-wrap: anywhere;
}


.confirmation-help {
    margin: 0 0 22px;

    color: #68736d;

    font-size: 14px;
    line-height: 1.6;
}


.confirmation-spam {
    margin-top: 18px;

    color: #89918d;

    font-size: 12px;
    line-height: 1.5;
}


#confirmationLoginButton {
    width: 100%;
}