/* Authentication Pages Styling */

/* Auth Body Background */
.auth-body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-grey) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Background Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(76, 195, 43, 0.1);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.floating-circle-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(76, 195, 43, 0.15);
}

.floating-circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
    background: rgba(255, 191, 0, 0.1);
}

.floating-circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
    background: rgba(76, 195, 43, 0.12);
}

.floating-circle-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: -3s;
    background: rgba(255, 191, 0, 0.08);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0px) translateX(-10px);
    }
    75% {
        transform: translateY(10px) translateX(5px);
    }
}

/* Auth Card */
.auth-container {
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(76, 195, 43, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(18, 12, 12, 0.25);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.auth-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(76, 195, 43, 0.1);
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--leafy-green);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo i {
    font-size: 2.5rem;
    color: var(--leafy-green);
    margin-right: 0.75rem;
}

.auth-logo h2 {
    color: var(--leafy-green);
    font-weight: 800;
    margin: 0;
    font-size: 1.75rem;
}

.auth-title {
    color: var(--primary-color);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: var(--gray-color);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.auth-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Form Styling */
.auth-body .form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-body .form-floating > label {
    color: var(--gray-color);
    font-weight: 600;
    padding-left: 2.5rem;
}

.auth-body .form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.auth-body .form-control:focus {
    border-color: var(--leafy-green);
    box-shadow: 0 0 0 4px rgba(76, 195, 43, 0.1);
    background: white;
    outline: none;
}

.auth-body .form-floating > label i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-cloud);
    z-index: 3;
    font-size: 1rem;
}

.auth-body .form-floating > .form-control:focus ~ label,
.auth-body .form-floating > .form-control:not(:placeholder-shown) ~ label {
    padding-left: 0;
}

.auth-body .form-floating > .form-control:focus ~ label i,
.auth-body .form-floating > .form-control:not(:placeholder-shown) ~ label i {
    display: none;
}

/* Button Styling */
.auth-body .btn-primary {
    background: var(--leafy-green);
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 195, 43, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--text-white);
}

.auth-body .btn-primary::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 ease;
}

.auth-body .btn-primary:hover {
    background: var(--muddy-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 195, 43, 0.3);
    color: var(--text-white);
}

.auth-body .btn-primary:hover::before {
    left: 100%;
}

.auth-body .btn-primary:active {
    transform: translateY(0);
}

/* Form Check */
.form-check {
    margin: 1.25rem 0;
}

.form-check-input {
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--leafy-green);
    border-color: var(--leafy-green);
}

.form-check-input:focus {
    border-color: var(--leafy-green);
    box-shadow: 0 0 0 4px rgba(76, 195, 43, 0.1);
}

.form-check-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links p {
    margin: 0.75rem 0;
    color: var(--gray-color);
}

.auth-links a {
    color: var(--leafy-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.auth-links a:hover {
    color: var(--muddy-brown);
    background: rgba(76, 195, 43, 0.1);
    text-decoration: none;
}

/* Validation Errors */
.text-danger {
    color: var(--red-color) !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.validation-summary-errors {
    background: var(--light-red);
    border: 1px solid var(--red-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--red-color);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.validation-summary-errors li {
    color: var(--red-color);
    font-weight: 500;
}

/* Loading States */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-body {
        padding: 1rem;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .auth-body {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo h2 {
        font-size: 1.5rem;
    }
    
    .auth-logo i {
        font-size: 2rem;
    }
    
    .floating-circle {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .auth-card {
        background: white;
        border: 2px solid var(--leafy-green);
    }
    
    .auth-body .form-control {
        border-width: 2px;
    }
    
    .auth-body .btn-primary {
        background: var(--leafy-green);
    }
}