:root {
    --primary-color: #8b6530;
    --primary-dark: #d4531b;
    --primary-light: #ff7a3d;
    --background-gradient: linear-gradient(135deg, #6c330a 0%, #8b6530 100%);
    --active-bg-color: #ffe8c4;
    --active-color: var(--primary-color);
    --text-dark: #2d3748;
    --text-light: #fff;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* Auth Pages Styling */
.auth-page {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.auth-header {
    background: var(--background-gradient);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.auth-header p {
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.auth-header .icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-header .icon-container i {
    font-size: 2rem;
    color: white;
}

.auth-body {
    padding: 1.2rem 2rem;
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(237, 98, 36, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Input Group with Icons */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    padding-left: 3rem;
}

.input-group-prepend {
    position: absolute;
    left: 1rem;
    z-index: 3;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-group:focus-within .input-group-prepend {
    color: var(--primary-color);
}

.input-group-prepend .input-group-text {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.1rem;
}

/* Enhanced Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(237, 98, 36, 0.1);
}

.form-check-label {
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 98, 36, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary-custom {
    background: var(--background-gradient);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 98, 36, 0.3);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: none;
    position: relative;
}

.alert-success {
    background: #f0fff4;
    color: #2d7d32;
    border-left: 4px solid #48bb78;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #f56565;
}

.alert-warning {
    background: #fffaf0;
    color: #dd6b20;
    border-left: 4px solid #ed8936;
}

.alert-info {
    background: #f0f9ff;
    color: #3182ce;
    border-left: 4px solid #63b3ed;
}

/* Error States */
.is-invalid {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #e53e3e;
    font-weight: 500;
}

/* Loading Animation */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        max-width: 100%;
    }
    
    .auth-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-header {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* Custom Primary Color Classes */
.bg-primary-custom {
    background: var(--background-gradient) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Additional utility classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* Focus states for accessibility */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 98, 36, 0.1);
}

