/* Dark mode background */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    min-height: 100vh;
    color: #fff;
}

.main-header {
    display: none !important;
}

.main-sidebar {
    display: none !important;
}

.content-wrapper {
    margin-left: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
}

.content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth card styling */
.auth-card {
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

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

/* Form controls styling */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-label i {
    color: #00d4ff;
}

/* Checkbox styling */
.form-check-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border-color: transparent;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    user-select: none;
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.7;
}

/* Alert styling */
.alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: #51cf66 !important;
}

.alert i {
    color: inherit;
}

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

/* Brand logo */
.brand-logo {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.brand-logo i {
    -webkit-text-fill-color: unset;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

/* Subtitle text */
.text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Social buttons */
.btn-outline-light {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Language switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border-color: transparent;
    color: #fff;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.divider {
    position: relative;
    margin: 35px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(0, 212, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.divider-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}

/* Error text */
.invalid-feedback {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 6px;
}

/* Footer text */
.footer-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-text a {
    color: #00d4ff !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #0099ff !important;
}

/* RTL Support */
[dir="rtl"] .lang-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .lang-btn {
    direction: rtl;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card {
        padding: 35px 25px !important;
    }

    .brand-logo {
        font-size: 28px !important;
    }

    .lang-switcher {
        right: 10px;
        top: 10px;
        gap: 6px;
    }

    [dir="rtl"] .lang-switcher {
        right: auto;
        left: 10px;
    }

    .lang-btn {
        padding: 7px 12px;
        font-size: 11px;
        border-radius: 6px;
    }

    .btn-login {
        font-size: 14px;
    }

    .divider {
        margin: 24px 0;
    }
}