﻿:root {
    --primary: #003366;
    --primary-rgb: 0, 51, 102;
    --primary-dark: #031f38;
    --primary-dark-rgb: 3, 31, 56;
    --primary-light: #eef4ff;
    --primary-light-rgb: 238, 244, 255;
    --accent: #ffcc00;
    --accent-rgb: 255, 204, 0;
    --right-start: #003366;
    --right-end: #031f38;
    --white: #ffffff;
    --page-bg: #ffffff;
    --panel-bg: #ffffff;
    --text-dark: #10202a;
    --text-muted: #718096;
    --text-label: #5c6b7a;
    --text-placeholder: #9aa8b5;
    --border: #d9e2ec;
    --border-mid: #c8d7dd;
    --danger-bg: #fff1f1;
    --danger-border: #ffd4d4;
    --danger-text: #9b1c1c;
    --left-panel-width: 30%;
    --right-panel-width: 70%;
    --content-max-width: 390px;
    --left-padding-x: 55px;
    --powered-bg: rgba(255,255,255,.96);
    --powered-border: rgba(3,31,56,.06);
    --rose: #c94040;
    --rose-light: #fdf0f0;
    --violet: #5a4ab0;
    --violet-light: #f0eeff;
    --green: #3a7a50;
    --green-light: #edf7f0;
    --gold: var(--accent);
    --gold-light: #f5eedc;
    --teal: #005662;
    --teal-mid: #007080;
    --teal-light: #008fa3;
    --teal-pale: #e0f2f5;
    --teal-faint: #f0f9fb;
    --ink: var(--text-dark);
    --ink-mid: var(--text-label);
    --ink-soft: var(--text-muted);
    --ink-faint: var(--text-placeholder);
    --bg: var(--page-bg);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text-dark);
}
    body::-webkit-scrollbar {
        width: 6px;
    }

    body::-webkit-scrollbar-track {
        background: transparent;
    }

    body::-webkit-scrollbar-thumb {
        background: #6b7888;
        border-radius: 999px;
        transition: .3s;
    }

        body::-webkit-scrollbar-thumb:hover {
            background: #3d4852;
        }

.container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Layout principal */
.login-page {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--left-panel-width) var(--right-panel-width);
    overflow: hidden;
    background: var(--page-bg);
}

/* Panel izquierdo */
.login-left {
    min-height: 100vh;
    background: var(--panel-bg);
    padding: 45px var(--left-padding-x);
    display: flex;
    flex-direction: column;
    position: relative;
}

    .login-left::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: rgba(var(--primary-rgb), .045);
        top: -160px;
        left: -120px;
        z-index: 0;
    }

    .login-left::after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        border-radius: 50%;
        background: rgba(var(--primary-rgb), .035);
        bottom: -180px;
        right: -130px;
        z-index: 0;
    }

.brand-mini,
.form-container,
.powered-card {
    position: relative;
    z-index: 2;
}

/* Marca superior */
.brand-mini {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 45px auto 55px auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-dark);
}

.brand-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(var(--accent-rgb), .12);
    color: var(--primary);
    font-size: 22px;
}

.brand-mini strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

.brand-mini span {
    display: block;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Formulario */
.form-container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.form-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 42px;
    line-height: 1.1;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 38px 0;
}

#error-message {
    display: none;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.container-input-login {
    margin-bottom: 22px;
}

    .container-input-login label {
        display: block;
        font-size: 13px;
        color: var(--text-label);
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 9px !important;
    }

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(var(--primary-rgb), .38);
        font-size: 16px;
        z-index: 2;
        pointer-events: none;
    }

.container-input-login input,
.wrap-input100 select {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white) !important;
    color: var(--text-dark);
    padding: 0 18px 0 50px;
    outline: none;
    font-size: 15px;
    transition: all .25s ease;
}

    .container-input-login input:focus,
    .wrap-input100 select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10);
    }

    .container-input-login input::placeholder {
        color: var(--text-placeholder);
        opacity: 1;
    }

.wrap-input100 select {
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -6px 0 22px 0;
    color: var(--text-label);
}

.input-checkbox100 {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.label-checkbox100 {
    margin: 0;
    font-size: 15px;
    cursor: pointer;
}

/* Botón */
.submit-buttons {
    margin-top: 28px;
}

    .submit-buttons input {
        width: 100%;
        height: 58px;
        border: none;
        border-radius: 10px;
        background: var(--primary);
        color: var(--white);
        font-weight: 800;
        font-size: 16px;
        cursor: pointer;
        transition: all .25s ease;
    }

        .submit-buttons input:hover {
            background: var(--primary-dark);
            box-shadow: 0 14px 28px rgba(var(--primary-dark-rgb), .25);
            transform: translateY(-1px);
        }

/* Panel derecho */
.login-right {
    min-height: 100vh;
    background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.05) 0 0, transparent 260px), radial-gradient(circle at 15% 85%, rgba(255,255,255,.04) 0 0, transparent 330px), linear-gradient(135deg, var(--right-start) 0%, var(--primary) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.right-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    color: rgba(255,255,255,.70);
    font-size: 12px;
    letter-spacing: .4px;
    font-weight: 500;
    z-index: 5;
}

@media(max-width:900px) {

    .right-footer {
        display: none;
    }
}

.right-content {
    text-align: center;
    max-width: 650px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.right-logo {
    font-size: 72px;
    margin-bottom: 25px;
    color: var(--white);
}

    .right-logo img {
        max-width: 220px;
        max-height: 220px;
        object-fit: contain;
        filter: drop-shadow(0 10px 30px rgba(0,0,0,.18));
    }

.right-content h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: var(--white);
}

.right-content p {
    color: rgba(255,255,255,.68);
    letter-spacing: 4px;
    font-size: 15px;
    margin: 0 0 50px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

    .features-list li {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 22px;
        color: rgba(255,255,255,.92);
        font-size: 17px;
    }

    .features-list i {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: rgba(var(--accent-rgb), .14);
        color: var(--accent);
        display: grid;
        place-items: center;
    }

/* Footer */
/*footer {
    left: 0;
    bottom: 28px;
    width: var(--left-panel-width);
    padding: 0 var(--left-padding-x);
    z-index: 30;
    pointer-events: none;
}*/
.login-footer {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 55px auto 0;
}

.powered-box {
    width: 62%;
    min-height: 60px;
    margin: 0 auto;
    background: var(--powered-bg);
    border: 1px solid var(--powered-border);
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(var(--primary-dark-rgb), .06), inset 0 1px 0 rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    backdrop-filter: blur(8px);
}

.powered-box-img {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-right: 9px;
    margin-right: 1px;
    border-right: 1px solid var(--border-mid);
}

    .powered-box-img img {
        width: 25px;
        height: 25px;
        object-fit: contain;
        display: block;
    }

.powered-by {
    font-size: 8px;
    line-height: 1;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.powered-text h3 {
    margin: 0;
    font-size: 11px;
    line-height: 1.1;
    color: var(--primary-dark);
    font-weight: 800;
}

.powered-text p {
    margin: 3px 0 0;
    font-size: 7.5px;
    line-height: 1.2;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Copyright lado derecho */
.footer-copy {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    :root {
        --left-panel-width: 38%;
        --right-panel-width: 62%;
        --left-padding-x: 42px;
    }

    .form-title {
        font-size: 38px;
    }

    .right-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 900px) {
    :root {
        --left-panel-width: 100%;
        --right-panel-width: 0%;
        --left-padding-x: 28px;
    }

    .login-page {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .login-right {
        display: none;
    }


    .login-left {
        min-height: 100vh;
        padding: 35px var(--left-padding-x);
    }

    .brand-mini {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .form-container,
    .brand-mini,
    .login-footer {
        max-width: 100%;
    }

    .form-title {
        font-size: 34px;
    }

    /*    footer {
        position: relative;
        bottom: auto;
        width: 100%;
        padding: 20px;
        background: var(--white);
    }

    .powered-box {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .footer-copy {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        color: var(--text-muted);
        text-shadow: none;
        text-align: center;
    }*/
}

@media (max-width: 430px) {
    .login-left {
        padding: 28px 20px;
    }

    .form-title {
        font-size: 31px;
    }

    .form-subtitle {
        font-size: 14px;
    }

    .brand-mini strong {
        font-size: 16px;
    }

    .container-input-login input,
    .wrap-input100 select {
        height: 52px;
    }

    .powered-box {
        padding: 15px;
        gap: 12px;
    }

    .powered-text h3 {
        font-size: 18px;
    }

    .powered-text p {
        font-size: 10px;
    }
}
 