/* Authentication Pages - Modern Styling */

body {
    background-color: #F9FAFB;
}

.authentication-content {
    margin: 10% auto;
    padding: 1.5rem;
    max-width: 500px;
}

/* Modern Card Styling */
.auth-card {
    border: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.auth-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Gradient Hero Header */
.auth-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d2 100%);
    padding: 2rem;
    color: white;
    text-align: center;
}

.auth-hero h1,
.auth-hero h2,
.auth-hero h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.auth-hero p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Form Container */
.auth-form-container {
    padding: 2rem;
}

/* Enhanced Form Controls */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

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

/* Button Enhancements */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Social Login Buttons */
.social-login-btn {
    transition: all 0.2s ease;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Password Toggle */
.password-toggle {
    background-color: #fff;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    background-color: #f8f9fa;
}

.password-input {
    border-top-right-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important;
}

/* Helper Text */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Error Messages */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.errorlist li {
    color: #dc3545;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

/* Success Messages */
.alert-success {
    border: 0;
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    border: 0;
    background-color: #cfe2ff;
    color: #084298;
}

/* Terms & Conditions Specific */
.terms-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.terms-container h2,
.terms-container h3 {
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.terms-container h2:first-child {
    margin-top: 0;
}

.terms-container p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-container ul,
.terms-container ol {
    color: #495057;
    margin-bottom: 1rem;
}

.form-check-input {
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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

/* Onboarding Language Selection */
.language-option {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
}

.language-option:hover {
    border-color: #0d6efd;
    box-shadow: 0 0.125rem 0.5rem rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.language-option.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .authentication-content {
        margin: 5% auto;
        padding: 1rem;
        max-width: 100%;
    }

    .auth-hero {
        padding: 1.5rem 1rem;
    }

    .auth-form-container {
        padding: 1.5rem;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
