/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Authentication Modal Link Styling */
.forgot-password-link {
    color: #e67e22 !important; /* Orange color for "Forgot Password?" */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: #d35400 !important;
}

.signup-link, .signin-link, .back-to-signin {
    color: #2ecc71 !important; /* Green color for "Sign Up", "Sign In", and "Back to Sign In" links */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.signup-link:hover, .signin-link:hover, .back-to-signin:hover {
    text-decoration: underline;
    color: #27ae60 !important;
}

/* Checkbox Styling for Better Visibility */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    margin-right: 0.5rem;
    border: 2px solid #3498db;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Profile Card Styles */
.profile-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: white;
    color: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.profile-body {
    padding: 2rem;
    position: relative;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
    padding-right: 1rem;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    border-color: #3498db;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Password Input Group */
.input-group .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus + .btn-outline-secondary {
    border-color: #3498db;
}

/* Form Text */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-body {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
    }
} 