:root {
    --bg1: #070a17;
    --bg2: #0a1b2b;
    --card: rgba(255,255,255,.06);
    --border: rgba(255,255,255,.10);
    --text: #e9ecff;
    --muted: rgba(233,236,255,.70);
    --accent: #6d5efc;
    --accent2: #4f7cff;
    --danger: #ff5d5d;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

.login-bg {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(900px 600px at 20% 10%, rgba(109,94,252,.35), transparent 60%), radial-gradient(900px 600px at 80% 20%, rgba(79,124,255,.25), transparent 60%), linear-gradient(135deg, var(--bg1), var(--bg2));
}

.login-card {
    width: min(440px, 92vw);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 22px 16px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}

.header-text h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: .2px;
}

.header-text p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,93,93,.12);
    border: 1px solid rgba(255,93,93,.25);
    color: #ffd7d7;
    font-size: 13px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px;
}

input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,14,30,.55);
    color: var(--text);
    outline: none;
}

    input::placeholder {
        color: rgba(233,236,255,.45);
    }

    input:focus {
        border-color: rgba(109,94,252,.55);
        box-shadow: 0 0 0 4px rgba(109,94,252,.16);
    }

.btn-login {
    margin-top: 6px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 12px 30px rgba(109,94,252,.28);
}

    .btn-login:hover {
        filter: brightness(1.05);
    }

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

.login-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

    .remember input {
        width: auto;
    }

.link {
    color: rgba(233,236,255,.85);
    text-decoration: none;
    font-size: 13px;
}

    .link:hover {
        text-decoration: underline;
    }

.login-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.rights {
    font-size: 12px;
    color: rgba(233,236,255,.60);
}

.ig {
    font-size: 12px;
    color: rgba(233,236,255,.82);
    text-decoration: none;
}

    .ig:hover {
        text-decoration: underline;
    }

/* ── Campo RNC destacado ── */
#rnc {
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 15px;
}

.field span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Separador visual entre RNC y credenciales */
.login-form .field:nth-child(2) {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
