/* 
 * Clean Professional Authentication CSS
 * White background with modern UI/UX design
 * Compatible with all auth pages
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body.authentication-bg {
    background: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
    color: #2d3748;
    line-height: 1.6;
}

/* Container Styles */
.home-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.home-desc-center {
    width: 100%;
    max-width: 1200px;
}

/* Home Button */
.home-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.home-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #4a5568;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.home-btn a:hover {
    background: #f7fafc;
    color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Main Card Styles */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Header Section */
.login-header, .auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before, .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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.brand-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.brand-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-header h4, .auth-header h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}

.login-header p, .auth-header p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Card Body */
.card-body {
    padding: 2.5rem 2rem;
    background: #ffffff;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    line-height: 1.5;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: #ffffff;
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-group-text {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #718096;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.form-control.with-icon {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group:focus-within .input-group-text {
    border-color: #667eea;
    background: #edf2f7;
    color: #667eea;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

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

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #718096;
    padding: 0.5rem;
    border-radius: 0 12px 12px 0;
    margin-left: -2px;
}

.btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-danger {
    background: #fed7d7;
    border-left-color: #e53e3e;
    color: #742a2a;
}

.alert-success {
    background: #c6f6d5;
    border-left-color: #38a169;
    color: #22543d;
}

.alert-info {
    background: #bee3f8;
    border-left-color: #3182ce;
    color: #2a4365;
}

.alert-warning {
    background: #faf089;
    border-left-color: #d69e2e;
    color: #744210;
}

/* Form Check */
.form-check {
    padding-left: 1.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    background: #ffffff;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #4a5568;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5a67d8;
    text-decoration: none;
}

/* Footer Links */
.footer-links {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

.footer-links a {
    color: #718096;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Validation States */
.form-control.is-valid {
    border-color: #38a169;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #e53e3e;
    background-image: none;
}

.invalid-feedback {
    display: block;
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #38a169;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-center {
        padding: 10px;
    }
    
    .card {
        margin: 0 10px;
        max-width: none;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .login-header, .auth-header {
        padding: 2rem 1.5rem 2rem;
    }
    
    .home-btn {
        top: 20px;
        left: 20px;
    }
    
    .home-btn a {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .login-header, .auth-header {
        padding: 1.5rem 1rem 1.5rem;
    }
    
    .brand-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .brand-icon i {
        font-size: 2rem;
    }
    
    .login-header h4, .auth-header h4 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Success/Error Page Specific Styles */
.status-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.status-icon.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-icon.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.status-icon.info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

/* Footer Copyright */
.text-center.mt-4 p {
    color: #a0aec0;
    font-size: 0.875rem;
    margin: 0;
}

/* Additional Utility Classes */
.text-muted {
    color: #718096 !important;
}

.text-white-50 {
    color: rgba(160, 174, 192, 0.8) !important;
}

.opacity-90 {
    opacity: 0.9;
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 500;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
