/* Authentication Styles */

/* Login and Register Forms */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.auth-container::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-header h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    opacity: 0.9;
}

.auth-body {
    padding: 3rem;
}

/* Form Styles */
.auth-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    height: calc(1.5em + 1rem + 4px);
    line-height: 1.5;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: white;
    transform: translateY(-2px);
}

.auth-form .form-control.is-invalid {
    border-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.05);
}

.auth-form .form-control.is-valid {
    border-color: var(--success-color);
    background: rgba(25, 135, 84, 0.05);
}

/* Input Group Styles */
.input-group .btn {
    border: 2px solid #e9ecef;
    border-left: none;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
}

.input-group .btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.input-group .form-control:focus + .btn {
    border-color: var(--primary-color);
}

/* Button Styles */
.auth-btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Demo Account Styles */
.demo-accounts {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-accounts .card-header {
    background: transparent;
    border: none;
    padding: 0 0 1rem 0;
}

.demo-accounts h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
}

.demo-accounts code {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.875rem;
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffd43b, #fab005);
    color: #212529;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-body h6 {
    color: white;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak {
    background: var(--danger-color);
    width: 25%;
}

.password-strength-medium {
    background: var(--warning-color);
    width: 50%;
}

.password-strength-strong {
    background: var(--success-color);
    width: 75%;
}

.password-strength-very-strong {
    background: var(--success-color);
    width: 100%;
}

/* Role Selection Styles */
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    height: calc(1.5em + 1rem + 4px);
    line-height: 1.5;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: white;
}

/* Terms and Conditions */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-header h3 {
        font-size: 1.5rem;
    }
    
    .demo-accounts {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-body {
        padding: 1.5rem 1rem;
    }
    
    .auth-header {
        padding: 1rem;
    }
    
    .auth-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

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

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Link Styles */
.text-decoration-none:hover {
    text-decoration: underline !important;
}

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

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

