/* Authentication Modal Styles */

/* Google Button */
.btn-google {
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    padding: 10px 16px;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    color: #3c4043;
}

.btn-google:active {
    background-color: #f1f3f4;
}

/* Dark mode Google button */
[data-bs-theme="dark"] .btn-google {
    background-color: #1f1f1f;
    border-color: #5f6368;
    color: #e8eaed;
}

[data-bs-theme="dark"] .btn-google:hover {
    background-color: #2a2a2a;
    color: #e8eaed;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dee2e6;
}

[data-bs-theme="dark"] .auth-divider::before {
    background-color: #495057;
}

.auth-divider span {
    background-color: #fff;
    padding: 0 12px;
    position: relative;
    color: #6c757d;
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .auth-divider span {
    background-color: #212529;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.btn-password-toggle {
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    color: #6c757d;
}

.btn-password-toggle:hover {
    color: #495057;
}

.btn-password-toggle:focus {
    outline: none;
    box-shadow: none;
}

[data-bs-theme="dark"] .btn-password-toggle {
    color: #adb5bd;
}

[data-bs-theme="dark"] .btn-password-toggle:hover {
    color: #e8eaed;
}

/* Loading State */
.btn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }

    .modal-content {
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .modal-body {
        overflow-y: auto;
    }
}

/* Accessibility - Focus Visible */
.btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .modal-content {
    background-color: #212529;
    border-color: #495057;
}

[data-bs-theme="dark"] .form-control {
    background-color: #2a2d31;
    border-color: #495057;
    color: #e8eaed;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #2a2d31;
    border-color: #86b7fe;
    color: #e8eaed;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #6c757d;
}

/* Email Verification Banner */
#emailVerificationBanner {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Auth Error/Success Messages */
.auth-error,
.auth-success {
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Link Hover States */
.auth-view a:hover {
    text-decoration: underline !important;
}

/* Modal Header */
.modal-header {
    padding: 1.5rem 1.5rem 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Password Toggle Icon Animation */
.btn-password-toggle i {
    transition: opacity 0.2s;
}

.btn-password-toggle:hover i {
    opacity: 0.8;
}

/* Submit Button Loading State */
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Terms Text */
.text-center.mt-3 a {
    color: inherit;
    text-decoration: underline;
}

[data-bs-theme="dark"] .text-center.mt-3 a {
    color: #86b7fe;
}
