* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #ffffff;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 65%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: width 0.5s ease;
    z-index: 1;
}

.content {
    position: fixed;
    left: 0;
    top: 0;
    width: 35%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
    z-index: 2;
    transition: transform 0.5s ease;
    overflow-y: auto;
}

.header {
    margin-bottom: 1.5rem;
}

.spark-spark-accent {
    color: #1e3c72;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 3em;
    text-align: left;
    line-height: 1;
    min-height: 1.2em;
    display: flex;
    align-items: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.description {
    color: #71717a;
    font-size: 0.875rem;
}

.input-container {
    margin-bottom: 1.5rem;
}

.input-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Password Input Container with Toggle Button */
.password-input-container {
    position: relative;
}

.password-input-container input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.password-toggle-btn:hover {
    color: #1e3c72;
}

.password-toggle-btn:focus {
    outline: none;
    color: #1e3c72;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terms {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    color: #71717a;
    text-align: center;
}

.terms a {
    color: #000000;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: #71717a;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

.alert {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.alert-danger {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* Info Button */
.info-button {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    border: none;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal Styles - SPARK Design */
.app-info-modal .modal-content {
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-info-modal .modal-header {
    background: #1e3c72;
    color: white;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info-modal .modal-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-info-modal .modal-icon {
    font-size: 1.25rem;
    color: white;
}

.app-info-modal .modal-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
    text-transform: uppercase;
}

.app-info-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.app-info-modal .btn-close:hover {
    opacity: 1;
}

.app-info-modal .modal-body {
    padding: 0;
    background: #fafafa;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.info-section {
    background: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border: 1px solid #1e3c72;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.info-icon-wrapper i {
    font-size: 1.25rem;
    color: #1e3c72;
}

.info-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #323130;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info-text {
    font-size: 0.8125rem;
    color: #605e5c;
    line-height: 1.5;
    margin: 0;
}

/* Info Footer */
.info-footer {
    background: white;
    padding: 1rem 1.5rem;
}

.info-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #605e5c;
    font-weight: 500;
}

.stat-item i {
    color: #1e3c72;
    font-size: 1rem;
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .info-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-divider {
        display: none;
    }
}

/* Login Button */
#login-btn {
    min-height: 48px;
    position: relative;
    border: none;
    cursor: pointer;
}

#login-btn.btn-connecting {
    opacity: 0.9;
}

#login-btn .btn-text {
    display: block;
}

#login-btn.btn-connecting .btn-text {
    display: none;
}

#login-btn .btn-loader {
    display: none;
}

#login-btn.btn-connecting .btn-loader {
    display: flex;
}

/* Custom Checkbox */
.form-check-input {
    border-color: #0078d4;
    cursor: pointer;
}

.form-check-input:checked {
    background: #0078d4 !important;
    border-color: #0078d4;
}

.form-check-input:focus {
    border-color: #106ebe;
    box-shadow: 0 0 0 0.25rem rgba(0, 120, 212, 0.25);
}



.error-message-container {
    margin-bottom: 15px;
    width: 100%;
}

/* ========================================
   VIDEO TOGGLE FEATURE (Desktop Only)
   ======================================== */

.video-toggle-btn,
.mini-login-bar {
    display: none;
}

@media screen and (min-width: 768px) {
    /* Toggle Button - at the right edge of content panel */
    .video-toggle-btn {
        position: fixed;
        left: calc(35% - 22px);
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background: #1e3c72;
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        z-index: 200;
        transition: left 0.5s ease, background 0.2s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .video-toggle-btn:hover {
        background: #2a5298;
    }

    .video-toggle-btn i {
        transition: transform 0.3s ease;
    }

    /* Mini Login Bar - just a colored bar, no button inside */
    .mini-login-bar {
        position: fixed;
        left: 0;
        top: 0;
        width: 70px;
        height: 100vh;
        background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
        display: block;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }

    .mini-login-bar.active {
        transform: translateX(0);
    }

    /* ========================================
       COLLAPSED STATE - Video Fullscreen
       ======================================== */
    body.video-fullscreen .content {
        transform: translateX(-100%);
    }

    body.video-fullscreen .sidebar {
        width: 100%;
    }

    body.video-fullscreen .video-toggle-btn {
        left: 80px;
    }

    body.video-fullscreen .video-toggle-btn i {
        transform: rotate(180deg);
    }
}

/* ========================================
   MOBILE LAYOUT
   ======================================== */
@media screen and (max-width: 767px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: 40vh;
        order: 1;
    }

    .content {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 60vh;
        order: 2;
        padding: 1rem;
        padding-bottom: 2rem;
    }

    .spark-spark-accent {
        font-size: 2em !important;
    }

    .terms {
        margin-bottom: 1rem;
        font-size: 0.7rem;
    }

    .footer {
        font-size: 0.65rem;
        padding: 0.75rem 0.5rem;
        margin-top: 0.5rem;
    }

    /* Hide video toggle on mobile */
    .video-toggle-btn,
    .mini-login-bar {
        display: none !important;
    }
}
