.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e8f0fe 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 9rem 1rem 3rem;
}
.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0,53,128,.12);
    width: 100%; max-width: 440px;
    overflow: hidden;
}
.auth-top {
    background: linear-gradient(135deg, #003580 0%, #0069cc 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-top::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.07);
    top: -60px; right: -40px;
}
.auth-top img { height: 44px; margin-bottom: 1.2rem; position: relative; z-index: 1; }
.auth-top h2 { color: white; font-size: 1.45rem; font-weight: 700; margin: 0; position: relative; z-index: 1; }
.auth-top p  { color: rgba(255,255,255,.72); margin: .35rem 0 0; font-size: .88rem; position: relative; z-index: 1; }

.auth-body { padding: 2rem; }

/* Inputs con icono */
.field-group { margin-bottom: 1.1rem; }
.field-group label { display: block; font-size: .8rem; font-weight: 600; color: #4a5568; margin-bottom: .4rem; letter-spacing: .03em; text-transform: uppercase; }
.field-wrap { position: relative; }
.field-wrap .f-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #a0aec0; pointer-events: none; display: flex;
}
.field-wrap input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: .75rem 2.8rem;
    font-size: .95rem;
    color: #1a202c;
    background: #f8faff;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    font-family: inherit;
}
.field-wrap input:focus {
    border-color: #0069cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,105,204,.1);
}
.field-wrap input::placeholder { color: #cbd5e0; }
.field-wrap .toggle-pw {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #a0aec0;
    padding: 0; display: flex; align-items: center; transition: color .2s;
}
.field-wrap .toggle-pw:hover { color: #0069cc; }

/* Error */
.auth-error {
    display: flex; align-items: center; gap: .6rem;
    background: #fff5f5; border: 1px solid #fed7d7;
    border-radius: 10px; padding: .7rem .9rem;
    color: #c53030; font-size: .875rem; font-weight: 500;
    margin-bottom: 1.1rem;
}

/* Botón */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, #003580, #0069cc);
    color: white; border: none; border-radius: 12px;
    padding: .85rem; font-size: .98rem; font-weight: 700;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 4px 14px rgba(0,105,204,.35);
    letter-spacing: .02em; margin-top: .25rem;
}
.btn-auth:hover { box-shadow: 0 6px 20px rgba(0,105,204,.45); transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }

.auth-footer { text-align: center; margin-top: 1.4rem; font-size: .88rem; color: #718096; }
.auth-footer a { color: #0069cc; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-divider {
    display: flex; align-items: center; gap: .75rem;
    color: #cbd5e0; font-size: .8rem; margin: 1.4rem 0;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:#e2e8f0; }

/* Indicador de fuerza de contraseña (registro) */
.pw-strength { margin-top: .4rem; display: flex; gap: .3rem; }
.pw-bar { height: 3px; flex: 1; border-radius: 2px; background: #e2e8f0; transition: background .3s; }
.pw-bar.weak   { background: #fc8181; }
.pw-bar.medium { background: #f6ad55; }
.pw-bar.strong { background: #68d391; }

@media(max-width:480px) {
    .auth-page { padding: 7rem .85rem 2rem; align-items: flex-start; }
    .auth-card { border-radius: 18px; }
    .auth-top { padding: 2rem 1.5rem 1.5rem; }
    .auth-top img { height: 38px; margin-bottom: 1rem; }
    .auth-top h2 { font-size: 1.25rem; }
    .auth-top p { font-size: .82rem; }
    .auth-body { padding: 1.5rem; }
    .field-wrap input { font-size: .9rem; }
    .btn-auth { font-size: .92rem; }
}
