/* Modern & Professional Login Design - SIGMUN Style */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-navy: #0f172a;
    --primary-blue: #2563eb;
    --accent-blue: #3b82f6;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --cu-blue: #0F69C4;
    --cu-orange: #FFBE5C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Slider Styles */
#bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: -1;
}

.login-content-wrapper {
    width: 100%;
    max-width: 1000px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
}

/* Restores for existing components */
.login-card * {
    border: none;
    outline: none;
}

.login-left-panel {
    flex: 1;
    min-width: 400px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.login-left-panel img {
    max-width: 380px;
    width: 90%;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.login-left-panel p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    max-width: 320px;
    z-index: 1;
}

.login-right-panel {
    flex: 1;
    min-width: 400px;
    padding: 4rem 3.5rem;
    background: white;
}

.login-right-panel h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.login-right-panel p.welcome-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.form-floating {
    margin-bottom: 1.25rem;
}

.form-floating > .form-control {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px !important;
    height: 60px !important;
    padding: 1rem 1rem !important;
    background: #f8fafc !important;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-blue) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.form-floating > label {
    padding: 1rem 1rem !important;
    color: var(--text-muted);
}

.btn-primary {
    background: var(--primary-blue) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    width: 100% !important;
    border: none !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4) !important;
}

.login-separator {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-separator::before, .login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid var(--border-color);
}

.login-separator span {
    padding: 0 1rem;
}

/* Official Clave Unica Overrides */
.btn-cu.btn-fw {
    border-radius: 12px !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.btn-cu:focus, .btn-cu:active {
    outline: 4px solid var(--cu-orange) !important;
    outline-offset: 2px !important;
}

/* Modern Footer */
.modern-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.modern-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-footer a:hover {
    color: white;
}

.modern-footer .separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.modern-footer .sigmun-link {
    font-weight: 600;
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 850px) {
    .login-left-panel {
        display: none;
    }
    .login-right-panel {
        min-width: 100%;
        padding: 3rem 2rem;
    }
}
