/* Auth Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
    --white-color: #ffffff;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Auth Section */
.auth-section {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: 100vh;
}

/* Auth Container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Auth Card - Form Side */
.auth-card {
    background: var(--white-color);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Auth Benefits - Right Side */
.auth-benefits {
    background: var(--gradient);
    color: var(--white-color);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-benefits::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-benefits::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

.auth-benefits h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.benefit-item i {
    font-size: 1.5rem;
    color: #27ae60;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Left Side - Info */
.auth-left {
    background: var(--gradient);
    color: var(--white-color);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

.auth-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.logo i {
    font-size: 2.5rem;
}

.auth-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: #27ae60;
}

/* Right Side - Form */
.auth-right {
    background: var(--white-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 500px;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    gap: 0.8rem;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: #636e72;
    font-size: 1rem;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #636e72;
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #ffe5e5;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background: #e6f9f0;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert i {
    font-size: 1.2rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.9rem 1rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group select {
    padding: 0.9rem 1rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white-color);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group small {
    color: #636e72;
    font-size: 0.85rem;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #636e72;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    color: #636e72;
    font-size: 0.95rem;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit,
.btn-auth {
    padding: 1rem;
    background: var(--gradient);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn-submit:hover,
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

.btn-submit:active,
.btn-auth:active {
    transform: translateY(0);
}

.btn-submit:disabled,
.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-color);
}

.auth-footer p {
    color: #636e72;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Social Login (Optional) */
.social-login {
    margin-top: 2rem;
}

.social-login-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.social-login-header::before,
.social-login-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--light-color);
}

.social-login-header::before {
    left: 0;
}

.social-login-header::after {
    right: 0;
}

.social-login-header span {
    background: var(--white-color);
    padding: 0 1rem;
    color: #636e72;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 0.8rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    background: var(--white-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark-color);
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-benefits {
        display: none;
    }

    .auth-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .auth-form-header h2 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-submit,
    .btn-auth {
        padding: 0.85rem;
        font-size: 1rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}