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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-container {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #333;
    border-radius: 50%;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loader-text p {
    font-size: 14px;
    color: #444;
    font-weight: 300;
}

.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/users/images/background.jpg') center/cover;
    opacity: 0.6;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.brand-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.brand-content {
    max-width: 600px;
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle i {
    font-size: 50px;
    color: #fff;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #999;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.description {
    margin-bottom: 50px;
}

.desc-main {
    font-size: 20px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.4;
}

.desc-sub {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    font-weight: 300;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #777;
}

.feature-item i {
    font-size: 24px;
    color: #555;
}

.feature-item span {
    font-size: 14px;
    font-weight: 400;
}

.login-section {
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid #333;
}

.login-container {
    width: 100%;
    max-width: 350px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    font-size: 24px;
    color: #666;
}

.login-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #888;
}

.form-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 18px;
    left: 15px;
    color: #555;
    z-index: 1;
    transition: color 0.3s ease;
}

.password-toggle {
    position: absolute;
    top: 18px;
    right: 15px;
    color: #555;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

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

.password-toggle.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.form-control {
    width: 100%;
    padding: 18px 45px 18px 45px;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control::placeholder {
    color: #666;
}

.form-control:focus {
    border-color: #555;
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.1);
}

.form-control:focus ~ .input-icon {
    color: #777;
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #1a1a1a;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #888;
}

.remember-checkbox.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #333;
    border: 2px solid #444;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #555;
    border-color: #666;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 10px;
}

.forgot-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #888;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: #333;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover:not(.loading) {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.login-btn:disabled {
    cursor: not-allowed;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #fff;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

.login-btn.loading {
    background: #555;
}

.error-alert {
    background: rgba(40, 20, 20, 0.9);
    border: 1px solid #4a2525;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.error-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 8px;
}

.error-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .brand-section {
        padding: 40px 20px;
    }

    .login-section {
        width: 100%;
        border-left: none;
        border-top: 1px solid #333;
    }

    .main-title {
        font-size: 36px;
    }

    .sub-title {
        font-size: 20px;
    }

    .features {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .brand-section {
        padding: 30px 15px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 28px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }
}