/* =============================================
   LOGIN.CSS — Capitcix Campus · Diseño Corporativo
   ============================================= */

/* Layout principal */
.template-grip-login {
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ─── PANEL IZQUIERDO: MARCA ─────────────────── */
.panel-brand {
    background: linear-gradient(150deg, #0d1f3c 0%, #0a2a5e 55%, #0d3b7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem;
}

.brand-logo-wrap {
    margin-bottom: 2rem;
}

.brand-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.75rem;
}

.brand-title {
    font-size: 2.25rem;
    font-weight: 300;
    color: white;
    line-height: 1.25;
    margin: 0;
}

.brand-title strong {
    font-weight: 800;
    display: block;
    font-size: 2.5rem;
}

.brand-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 1.75rem auto;
    border-radius: 2px;
}

.brand-desc {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ─── CUBOS 3D ───────────────────────────────── */
.scene {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.scene-form {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Cubo base */
.cube-container-1 {
    perspective: 1000px;
    width: 100px;
    height: 100px;
    margin: 50px auto;
    position: absolute;
    top: 0;
    left: 30px;
}

.cube-container-2 {
    perspective: 1000px;
    width: 100px;
    height: 100px;
    margin: 50px auto;
    position: absolute;
    bottom: 0;
    right: 30px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateY(57deg);
    animation: rotate-cube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.9;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.front {
    background: #1e64dc;
    transform: translateZ(50px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back {
    background: #1450c8;
    transform: rotateY(180deg) translateZ(50px);
}

.right {
    background: #2878f0;
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    background: #0f46b4;
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    background: #3c8cff;
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    background: #0a3ca0;
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ─── PANEL DERECHO: FORMULARIO ─────────────── */
.panel-form {
    background: #f8f9fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 2.25rem;
}

.login-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* ─── CAMPOS ─────────────────────────────────── */
.field-group {
    margin-bottom: 1.25rem;
}

.field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.field-input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
}

.field-input:hover {
    border-color: #cbd5e1;
}

.field-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-input::placeholder {
    color: #cbd5e1;
}

/* Botón ojo contraseña */
.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-pw:hover {
    color: #2563eb;
}

/* ─── PIE DEL FORMULARIO ─────────────────────── */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.remember-wrap span {
    font-size: 0.85rem;
    color: #64748b;
    user-select: none;
}

.forgot-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ─── BOTÓN PRINCIPAL ────────────────────────── */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 52px;
    background: #1d4ed8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.btn-login i {
    font-size: 20px;
}

.btn-login:hover {
    background: #1e40af;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.btn-login:active {
    transform: scale(0.99);
}

.btn-login:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    box-shadow: none;
}

/* ─── BADGE SEGURIDAD ────────────────────────── */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.75rem;
    font-size: 11.5px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.secure-badge i {
    font-size: 14px;
    color: #6dba7e;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 992px) {
    .template-grip-login {
        grid-template-columns: 1fr;
    }

    #loginScene {
        display: none;
    }

    .panel-form {
        background: #ffffff;
        padding: 2.5rem 1.5rem;
    }

    .login-card {
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .panel-form {
        padding: 2rem 1.25rem;
        padding-top: 3rem;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .mobile-logo {
        margin-bottom: 2rem;
    }
}