:root {
    --primary-color: #f4801f;
    --primary-dark: #d86b13;
    --primary-light: #ffd0a8;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --secondary-light: #ebf5fb;
    --success-color: #2ecc71;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f8f9fa;
}

/* Modern Card Styling */
.auth-card {
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

/* Background Animation */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 15s linear infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease;
}

/* Modern Input Styling */
.auth-input {
    border-radius: 0.8rem !important;
    padding: 1rem 1.2rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid transparent !important;
}

.auth-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(244, 128, 31, 0.15) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.input-group-text {
    border-radius: 0.8rem !important;
    padding: 1rem 1.2rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid transparent !important;
}

.auth-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 128, 31, 0.25);
}

/* Button Animation */
.auth-btn {
    border-radius: 0.8rem !important;
    padding: 1rem 1.5rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative;
    overflow: hidden;
    border: none !important;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.3s;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 128, 31, 0.3) !important;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
}



/* Feature Icons Animation */
.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

.feature-icon i {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.mb-3:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.mb-3:hover .feature-icon i {
    transform: rotate(360deg);
}

/* Link Animation */
.auth-link {
    color: var(--primary-color);
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.auth-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

.auth-link:hover::after {
    width: 100%;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    transform: translateY(0);
    transition: all 0.2s ease;
}

.form-control:focus + .form-label {
    transform: translateY(-5px);
    color: var(--primary-color);
}

/* Card Content Animation */
.card .row > div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

.card .row > div:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation for Buttons */
.auth-btn.loading {
    position: relative;
    pointer-events: none;
}

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

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

.input-group-text {
    background-color: transparent !important;
    border-right: none;
}

.form-control {
    border-left: none;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}
