:root {
    --primary-color: #1f1e30;
    --secondary-color: #adcb43ff;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #1a252f;
    --light-bg: #f8f9fa;
    --text-primary: #2c3e50;
    --text-grey: #bdbdbdff;
    --text-gray: #6c757d;
    --text-secondary: #90996e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1000px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    /* background-color: var(--secondary-color); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 28px;
}

.auth-logo-text {
    font-size: 25px;
    font-weight: 800;
    color: var(--light-bg);
}

.auth-tagline {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content */
.auth-main {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* Info Panel */
.auth-info-panel {
    flex: 1;
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(31, 30, 48, 0.9), rgba(31, 30, 48, 0.95));
    z-index: 1;
}

.auth-info-content {
    position: relative;
    z-index: 2;
}

.auth-info-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.auth-info-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-grey);
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(173, 203, 67, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 18px;
}

/* Form Panel */
.auth-form-panel {
    flex: 1;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.auth-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-form-header {
    margin-bottom: 30px;
}

.auth-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.auth-form-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Form */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    color: var(--text-gray);
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(173, 203, 67, 0.1);
    background-color: white;
}

.form-control.is-invalid {
    border-color: var(--accent-color);
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 5px;
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.terms-link {
    color: var(--secondary-color);
}

/* Submit Button */
.auth-btn {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-btn i {
    margin-right: 10px;
}

.auth-btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.auth-btn-primary:hover {
    background-color: #9ab83a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.auth-btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid #e9ecef;
}

.auth-btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--secondary-color);
}

/* Instructions */
.instructions {
    background-color: rgba(173, 203, 67, 0.1);
    border: 1px solid rgba(173, 203, 67, 0.2);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.instructions h6 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.instructions ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.instructions li {
    margin-bottom: 5px;
}

/* Toggle Link */
.auth-toggle {
    text-align: center;
    margin: 0px;
    font-size: 15px;
    color: var(--text-gray);
}

.auth-toggle-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    cursor: pointer;
}

.auth-toggle-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Success Message */
.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    color: var(--success-color);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.alert-success i {
    margin-right: 10px;
    font-size: 16px;
}

/* Loading State */
.auth-btn.loading {
    position: relative;
    color: transparent;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Dashboard Link */
.dashboard-link {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 100;
}

.dashboard-link:hover {
    background-color: #9ab83a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-main {
        flex-direction: column;
    }

    .auth-info-panel {
        order: 2;
    }

    .auth-form-panel {
        order: 1;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 15px;
    }

    .auth-form-panel,
    .auth-info-panel {
        padding: 30px 20px;
    }

    .auth-logo-text {
        font-size: 28px;
    }

    .social-login {
        flex-direction: column;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}