
:root {
    --background: #101116;
    --panel: #17191f;
    --surface: #20232b;
    --gold: #c9a96e;
    --gold-light: #e5c995;
    --text: #f2f2f3;
    --muted: #9296a1;
    --border: rgba(255,255,255,.09);
    --font: 'DM Sans', sans-serif;
    --heading: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

/* PANEL VISUAL */

.visual-panel {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 55px 8%;
    background:
        radial-gradient(ellipse at 75% 30%, rgba(201,169,110,.15), transparent 45%),
        linear-gradient(145deg, #20232b, #121318 75%);
}

.visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
}

.visual-overlay {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(201,169,110,.12);
    border-radius: 50%;
    right: -180px;
    bottom: 5%;
    box-shadow:
        0 0 0 45px rgba(201,169,110,.025),
        0 0 0 90px rgba(201,169,110,.018);
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    z-index: 2;
}

.brand-symbol {
    width: 45px;
    height: 45px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading);
    font-size: 25px;
    font-weight: 800;
    border-radius: 12px 3px 12px 3px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-info strong {
    font-family: var(--heading);
    letter-spacing: 3px;
    font-size: 16px;
}

.brand-info small {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: auto 0;
    padding: 80px 0;
}

.eyebrow {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold);
}

.visual-content h1 {
    font-family: var(--heading);
    font-size: clamp(38px, 4.4vw, 65px);
    line-height: 1.15;
    letter-spacing: -2.5px;
    font-weight: 700;
}

.visual-content h1 span {
    display: block;
    color: var(--gold);
}

.visual-content > p {
    margin-top: 25px;
    color: #a5a8b1;
    font-size: 14px;
    line-height: 1.9;
    max-width: 410px;
}

.visual-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 38px 0 25px;
}

.visual-footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201,169,110,.3);
    color: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon svg {
    width: 22px;
}

.visual-footer-info div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visual-footer-info strong {
    font-size: 12px;
}

.visual-footer-info small {
    color: var(--muted);
    font-size: 11px;
}

.visual-copyright {
    position: relative;
    color: #777b85;
    font-size: 10px;
    z-index: 2;
}

/* PANEL DEL FORMULARIO */

.form-panel {
    min-height: 100vh;
    background: #14161c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 8%;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 410px;
}

.welcome-icon {
    width: 57px;
    height: 57px;
    border: 1px solid rgba(201,169,110,.35);
    background: rgba(201,169,110,.08);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    color: var(--gold);
}

.welcome-icon svg {
    width: 27px;
}

.section-label {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
}

.heading h2 {
    font-family: var(--heading);
    font-size: 35px;
    letter-spacing: -1px;
    margin: 12px 0;
}

.heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* CAMPOS */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 11px;
}

.input-wrapper {
    height: 56px;
    border: 1px solid var(--border);
    background: #1c1f26;
    border-radius: 9px;
    display: flex;
    align-items: center;
    padding: 0 17px;
    gap: 13px;
    transition: .25s;
}

.input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,.08);
}

.input-wrapper svg {
    width: 19px;
    color: #898d98;
    flex-shrink: 0;
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
}

.input-wrapper input::placeholder {
    color: #686c76;
}

.submit-button {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(110deg, #b8955c, #dfc18b);
    color: #17171a;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: .25s;
}

.submit-button svg {
    width: 19px;
    transition: transform .25s;
}

.submit-button:hover {
    box-shadow: 0 7px 25px rgba(201,169,110,.17);
    filter: brightness(1.08);
}

.submit-button:hover svg {
    transform: translateX(4px);
}

.submit-button:active {
    transform: scale(.99);
}

/* SEGURIDAD */

.security-notice {
    margin-top: 35px;
    padding: 20px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    gap: 14px;
}

.security-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.security-icon svg {
    width: 23px;
}

.security-notice strong {
    display: block;
    font-size: 11px;
    margin-bottom: 7px;
}

.security-notice p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.login-bottom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 45px;
    color: #656a75;
    font-size: 8px;
    letter-spacing: 1.8px;
    white-space: nowrap;
}

.bottom-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* MENSAJES */

.alert {
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.alert-error {
    background: rgba(220,70,70,.09);
    color: #f19a9a;
    border: 1px solid rgba(220,70,70,.2);
}

.alert-success {
    background: rgba(65,180,120,.09);
    color: #8bd6ad;
    border: 1px solid rgba(65,180,120,.2);
}

.mobile-brand,
.mobile-copyright {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: .9fr 1.1fr;
    }

    .visual-panel {
        padding: 40px 7%;
    }

    .visual-content h1 {
        font-size: 42px;
    }

    .form-panel {
        padding: 40px 7%;
    }
}

@media (max-width: 650px) {
    .login-layout {
        display: block;
    }

    .visual-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 35px 25px;
        justify-content: center;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        position: absolute;
        top: 30px;
        left: 25px;
    }

    .mobile-brand .brand-symbol {
        width: 39px;
        height: 39px;
        font-size: 21px;
    }

    .mobile-brand .brand-info strong {
        font-size: 14px;
    }

    .login-container {
        max-width: 430px;
        margin-top: 60px;
    }

    .heading h2 {
        font-size: 32px;
    }

    .mobile-copyright {
        display: block;
        position: absolute;
        bottom: 17px;
        color: #686c76;
        font-size: 10px;
    }
    /* SELECTOR DE TIPO DE ACCESO */

    .access-selector {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }

    .access-option {
        position: relative;
        cursor: pointer;
    }

    .access-option input {
        position: absolute;
        opacity: 0;
    }

    .access-option span {
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding: 17px 13px;
        border: 1px solid var(--border);
        background: #1c1f26;
        border-radius: 10px;
        transition: .25s;
    }

    .access-option strong {
        font-size: 12px;
        color: var(--text);
    }

    .access-option small {
        font-size: 10px;
        color: var(--muted);
    }

    .access-option input:checked + span {
        border-color: var(--gold);
        background: rgba(201,169,110,.08);
    }

    .access-option input:focus-visible + span {
        outline: 2px solid var(--gold);
        outline-offset: 3px;
    }
}

@media (max-width: 360px) {
    .form-panel {
        padding: 30px 19px;
    }

    .security-notice {
        padding: 15px;
    }

    .login-bottom {
        gap: 7px;
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
