/* ==========================================
   Authentication Pages Styles
   ========================================== */

/* Body background with book pattern */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}





@keyframes floatPattern {
    0%, 100% { transform: rotate(-5deg) translateY(0px) translateX(0px); }
    25% { transform: rotate(-4deg) translateY(-10px) translateX(-5px); }
    50% { transform: rotate(-6deg) translateY(-5px) translateX(5px); }
    75% { transform: rotate(-5deg) translateY(-15px) translateX(-3px); }
}

@keyframes floatPatternReverse {
    0%, 100% { transform: rotate(5deg) translateY(0px) translateX(0px); }
    25% { transform: rotate(6deg) translateY(10px) translateX(3px); }
    50% { transform: rotate(4deg) translateY(5px) translateX(-5px); }
    75% { transform: rotate(5deg) translateY(15px) translateX(5px); }
}

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

/* Auth card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    max-width: 420px;
    width: 100%;
    padding: 40px;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth card decorative elements */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.05), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

/* Logo section */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B6B, #e11a1a);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-logo-icon i {
    font-size: 2rem;
    color: white;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Form styling */
.auth-form .form-label {
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.auth-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.auth-form .form-control:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.15);
    background: white;
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-form .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Submit button */
.btn-auth-primary {
    background: linear-gradient(135deg, #FF6B6B, #e11a1a);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth-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;
}

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

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

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

/* Form check */
.auth-form .form-check {
    margin: 20px 0;
}

.auth-form .form-check-input {
    margin-top: 0.25rem;
}

.auth-form .form-check-input:checked {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

.auth-form .form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Links */
.auth-link {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #e11a1a;
    text-decoration: underline;
}

/* Footer text */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .auth-logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo-icon i {
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Loading animation */
.btn-auth-primary.loading {
    pointer-events: none;
}

.btn-auth-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
