/* Authentication Pages Styling */
/* Updated: 2025-11-28 */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 300px);
    padding: 2rem 1rem;
}

.auth-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
    color: var(--color-theme-2);
    font-size: 2rem;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-icon {
    font-size: 3rem;
    color: var(--color-theme-1);
    margin-bottom: 1rem;
}

.auth-icon i {
    display: inline-block;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-inline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-bg);
    color: var(--color-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-theme-1);
    box-shadow: 0 0 0 3px rgba(237, 118, 24, 0.1);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
    display: block;
}

.form-text.error {
    color: #dc3545;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 3rem;
    flex: 1;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--color-theme-1);
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 0.75rem;
}

.password-strength-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-fill.weak {
    width: 25%;
    background-color: #dc3545;
}

.password-strength-fill.fair {
    width: 50%;
    background-color: #ffc107;
}

.password-strength-fill.good {
    width: 75%;
    background-color: #28a745;
}

.password-strength-fill.strong {
    width: 100%;
    background-color: #20c997;
}

.password-strength-fill.very_strong {
    width: 100%;
    background-color: #00875a;
}

.password-strength-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

.password-strength-text.weak { color: #dc3545; }
.password-strength-text.fair { color: #ffc107; }
.password-strength-text.good { color: #28a745; }
.password-strength-text.strong { color: #20c997; }
.password-strength-text.very_strong { color: #00875a; }

/* Password Requirements */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--color-sidebar-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.requirements-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 0.875rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.requirement-icon {
    font-size: 0.5rem;
    color: #ccc;
    transition: color 0.2s;
}

.password-requirements li.met {
    color: #28a745;
}

.password-requirements li.met .requirement-icon {
    color: #28a745;
}

/* Password Suggestions */
.password-suggestions {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.suggestions-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #856404;
}

.password-suggestions ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.password-suggestions li {
    font-size: 0.875rem;
    color: #856404;
    padding: 0.125rem 0;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-theme-1);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Messages */
.form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    display: block;
}

/* Auth Button */
.auth-button {
    padding: 0.875rem 1.5rem;
    background-color: var(--color-theme-1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}

.auth-button:hover {
    background-color: #d66a15;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(237, 118, 24, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.auth-button.secondary {
    background-color: var(--color-theme-2);
}

.auth-button.secondary:hover {
    background-color: #1e5670;
}

.button-loader {
    display: inline-block;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.auth-footer p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.auth-footer a {
    color: var(--color-theme-1);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-password-link {
    color: var(--color-theme-1);
    text-decoration: none;
    font-size: 0.95rem;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-border);
}

.auth-divider span {
    position: relative;
    background-color: var(--color-card-bg);
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.oauth-button:hover {
    border-color: var(--color-theme-1);
    background-color: rgba(237, 118, 24, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oauth-button i {
    font-size: 1.25rem;
}

.google-button i {
    color: #4285F4;
}

/* Verification Page Styles */
.verification-loading,
.success-icon,
.error-icon {
    text-align: center;
    margin: 2rem 0;
}

.verification-loading i {
    font-size: 3rem;
    color: var(--color-theme-1);
}

.success-icon i {
    font-size: 4rem;
    color: #28a745;
}

.error-icon i {
    font-size: 4rem;
    color: #dc3545;
}

.success-message,
.error-message {
    text-align: center;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}


/* WebView Warning */
.webview-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.webview-warning i {
    font-size: 1.5rem;
    color: #856404;
}

.webview-warning p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.4;
}

/* 2025-11-21: Removed OS-level dark media query; dark mode handled via [data-theme="dark"] in darkmode.css */