/* Ocultar el nav y footer genéricos en la pantalla de login */
header, #titulo, hr, .footer {
    display: none !important;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.v-main-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 960px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 20px;
    border: 1px solid #e2e8f0;
}

.login-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.brand-header img {
    max-width: 150px;
    height: auto;
}

.brand-info {
    margin-top: 40px;
}

.brand-info h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.brand-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.brand-graphics {
    margin: 30px 0;
    text-align: center;
}

.brand-graphics svg {
    max-width: 85%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.25));
}

.brand-footer {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 20px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.security-badge i {
    font-size: 1.1rem;
    color: #38bdf8;
}

.login-form-panel {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-header h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.form-header p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.form-floating > .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 54px;
}

.form-floating > .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #475569;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 24px;
    margin-top: 15px;
}

.form-check-input {
    border-color: #cbd5e1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    color: #475569;
}

.forgot-password-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

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

.btn-login {
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-login:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

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

.recaptcha-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 992px) {
    .login-brand-panel {
        display: none;
    }
    .login-wrapper {
        max-width: 460px;
    }
    .login-form-panel {
        padding: 32px 24px;
    }
}
