:root{
    --navy:#0b2341;
    --navy-light:#15375f;
    --gold:#d8a728;
    --gold-soft:#f2c14e;
    --white:#ffffff;
    --background:#eef3f9;
    --text-dark:#1f3045;
    --shadow:0 8px 24px rgba(8,23,43,0.08);
}

/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Segoe UI,sans-serif;
}

/* =========================
   BODY
   MOBILE FIRST
========================= */
body{
    min-height:100vh;
    width:100%;
    background: linear-gradient(135deg,#eef3f9 0%,#e5edf7 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    overflow-x:hidden;
}

/* =========================
   LOGIN CARD
========================= */
.login-card{
    width:100%;
    max-width:430px;
    position:relative;
    background:var(--white);
    border:1px solid rgba(11,35,65,0.08);
    border-radius:18px;
    padding:26px 20px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.login-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,var(--gold),var(--gold-soft));
}

/* =========================
   BRAND
========================= */
.brand{
    text-align:center;
    margin-bottom:28px;
}

.brand .logo{
    width:62px;
    height:62px;
    margin:0 auto 14px;
    border-radius:16px;
    background:linear-gradient(135deg,var(--navy),var(--navy-light));
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    font-weight:700;
    box-shadow:0 8px 20px rgba(11,35,65,.15);
}

.brand h1{
    color:var(--navy);
    font-size:28px;
    font-weight:700;
    line-height:1.2;
}

.brand h1 span{
    color:var(--gold);
    font-weight:300;
}

.brand p{
    margin-top:8px;
    color:#6b7c92;
    font-size:13px;
    line-height:1.5;
}

/* =========================
   FORM
========================= */
.login-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.form-group label{
    color:var(--text-dark);
    font-size:13px;
    font-weight:600;
}

.form-group input{
    width:100%;
    height:48px;
    padding:0 14px;
    background:#f8fbff;
    border:1px solid #d7e0ea;
    border-radius:12px;
    color:var(--text-dark);
    font-size:14px;
    transition:0.25s ease;
}

.form-group input:hover{
    border-color:#c3d1e0;
}

.form-group input:focus{
    outline:none;
    background:white;
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(216,167,40,.15);
}

/* =========================
   BUTTON
========================= */
.btn-login{
    position:relative;
    width:100%;
    border:none;
    overflow:hidden;
    margin-top:6px;
    height:50px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--navy),var(--navy-light));
    color:white;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.25s ease;
    box-shadow:0 6px 18px rgba(11,35,65,.15);
}

.btn-login::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg,var(--gold),var(--gold-soft));
}

.btn-login:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(11,35,65,.20);
}

.btn-login:active{
    transform:translateY(0);
}

/* =========================
   FOOTER
========================= */

.footer{
    margin-top:20px;
    text-align:center;
    color:#7a8ba1;
    font-size:12px;
    line-height:1.5;
}

.forgot-password{
    display:inline-block;
    margin-top:8px;
    font-size:12px;
    color:#6b7c92;
    text-decoration:none;
    transition:0.2s ease;
}

.forgot-password:hover{
    color:var(--navy);
    text-decoration:underline;
}

/* ==================================================
   576px
   MÓVILES GRANDES / TABLETS PEQUEÑAS
================================================== */
@media (min-width:576px){
    body{
        padding:24px;
    }

    .login-card{
        border-radius:20px;
        padding:34px;
    }

    .brand{
        margin-bottom:32px;
    }

    .brand .logo{
        width:68px;
        height:68px;
        margin-bottom:16px;
        border-radius:17px;
        font-size:28px;
    }

    .brand h1{
        font-size:30px;
    }

    .brand p{
        font-size:14px;
    }

    .login-form{
        gap:20px;
    }

    .form-group{
        gap:8px;
    }

    .form-group label{
        font-size:14px;
    }

    .form-group input{
        height:50px;
        padding:0 16px;
        border-radius:14px;
    }

    .btn-login{
        height:52px;
        border-radius:14px;
        font-size:15px;
    }

    .footer{
        margin-top:24px;
        font-size:13px;
    }

    .forgot-password{
        margin-top:10px;
        font-size:13px;
    }
}

/* ==================================================
   768px
   TABLETS
================================================== */
@media (min-width:768px){
    body{
        padding:30px;
    }

    .login-card{
        padding:38px;
    }
}

/* ==================================================
   1024px
   NOTEBOOKS / MONITORES
================================================== */
@media (min-width:1024px){
    body{
        padding:40px;
    }

    .login-card{
        max-width:430px;
        padding:42px;
        border-radius:24px;
    }

    .brand{
        margin-bottom:34px;
    }

    .brand .logo{
        width:72px;
        height:72px;
        margin-bottom:18px;
        border-radius:18px;
        font-size:30px;
    }

    .brand h1{
        font-size:32px;
    }

    .login-form{
        gap:20px;
    }

    .form-group input{
        height:50px;
    }

    .btn-login{
        height:52px;
    }
}