:root {
    --btn-color:        #92A2A6;
    --btn-hover:        #7d8f93;
    --accent:           #92A2A6;
    --accent-focus:     rgba(146,162,166,0.20);
    --card-bg:          #ffffff;
    --input-bg:         #fafafa;
    --input-border:     #e0e0e0;
    --input-border-focus: #92A2A6;
    --text-primary:     #2c2c2c;
    --text-secondary:   #999999;
    --text-label:       #aaaaaa;
    --link-color:       #92A2A6;
    --link-hover:       #5a7377;
    --divider:          #f0f0f0;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Fondo con imagen + degradado encima ── */
.account-pages {
    position: fixed;
    inset: 0;
    background: url(../../images/fondo_login.jpg) center center / cover no-repeat;
    z-index: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        150deg,
        rgba(110, 144, 151, 0.82) 0%,
        rgba(80, 110, 116, 0.78) 50%,
        rgba(50, 80, 85, 0.88) 100%
    );
    z-index: 1;
}

/* ── Wrapper centrado verticalmente ── */
/* ✅ SIN SCROLL */
.login-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* ── Título sobre el card ── */
.login-title {
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 18px 0;
    text-align: center;
}

/* ── Card principal ── */
.account-wall {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
    padding: 28px 40px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

/* ── Logo ── */
.login-logo {
    text-align: center;
    margin-bottom: 0;
}

.login-logo img {
    max-width: 160px;
    height: auto;
}

/* ── Línea divisora ── */
.login-divider {
    height: 1px;
    background: var(--divider);
    margin: 24px -40px 28px;
}

/* ── Grupos de campo ── */
.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-label);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-wrap .input-icon {
    position: absolute;
    left: 12px;
    color: #ccc;
    font-size: 15px;
    pointer-events: none;
    line-height: 1;
}

.field-input-wrap input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--input-border);
    border-radius: 3px;
    padding: 0 42px 0 38px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--input-bg);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field-input-wrap input:focus {
    border-color: var(--input-border-focus);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-focus);
}

.field-input-wrap input::placeholder {
    color: #ccc;
}

.btn-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 15px;
    padding: 4px;
    line-height: 1;
    outline: none;
    transition: color 0.2s;
}

.btn-eye:hover { color: var(--accent); }

/* ── Botón principal ── */
.btn-login {
    display: block;
    width: 100%;
    height: 46px;
    background: var(--btn-color);
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}

.btn-login:hover  { background: var(--btn-hover); }
.btn-login:active { transform: scale(0.99); }
.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Links inferiores ── */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--divider);
}

.login-links a {
    font-size: 11px;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .account-wall {
        padding: 32px 24px 28px;
    }
    .login-divider {
        margin-left: -24px;
        margin-right: -24px;
    }
}
