/* Authentication Pages Styles */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card .card-body {
    padding: 3rem;
}

.auth-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-card .text-muted {
    color: #6c757d !important;
    font-size: 0.95rem;
}

/* Form Styles */
.auth-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.auth-card .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.auth-card .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    background: #fff;
}

.auth-card .input-group-text {
    border-radius: 12px 0 0 12px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    color: #6c757d;
    border-right: none;
}

.auth-card .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* Button Styles */
.auth-card .btn {
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: none;
    letter-spacing: 0.5px;
}

.auth-card .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.auth-card .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.auth-card .btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Alert Styles */
.auth-card .alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-card .alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.auth-card .alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.auth-card .alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Link Styles */
.auth-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.auth-card .fw-bold {
    font-weight: 700 !important;
}

/* Icon Styles */
.auth-card .fa-3x {
    color: #007bff;
    filter: drop-shadow(0 4px 8px rgba(0,123,255,0.3));
}

.auth-card .input-group-text i {
    width: 16px;
    text-align: center;
}

/* Form Text */
.auth-card .form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card .card-body {
        padding: 2rem;
    }
    
    .auth-card h3 {
        font-size: 1.5rem;
    }
    
    .auth-card .fa-3x {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .auth-card .card-body {
        padding: 1.5rem;
    }
    
    .auth-card h3 {
        font-size: 1.3rem;
    }
    
    .auth-card .fa-3x {
        font-size: 2rem !important;
    }
    
    .auth-card .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 0 auto 20px;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark .checkmark {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }
    50% {
        transform: translate(0, -10px);
    }
    100% {
        transform: translate(0, 0px);
    }
}
