/**
 * Custom Auth Frontend Styles
 *
 * @package CustomAuth
 */

/* CSS Custom Properties (Variables) */
:root {
    /* Border Radius */
    --custom-auth-border-radius-cards: 8px;
    --custom-auth-border-radius-buttons: 8px;
    --custom-auth-border-radius-inputs: 4px;
    --custom-auth-border-radius-notices: 4px;

    /* Colors */
    --custom-auth-color-primary: #007cba;
    --custom-auth-color-primary-hover: #005a87;
    --custom-auth-color-primary-dark: #00405a;
    --custom-auth-color-secondary: #6c757d;
    --custom-auth-color-success: #28a745;
    --custom-auth-color-error: #dc3545;
    --custom-auth-color-warning: #856404;
    --custom-auth-color-info: #0984e3;

    /* Background Colors */
    --custom-auth-bg-primary: #007cba;
    --custom-auth-bg-secondary: #6c757d;
    --custom-auth-bg-light: #f8f9fa;
    --custom-auth-bg-white: #fff;
    --custom-auth-bg-success: #d4edda;
    --custom-auth-bg-error: #f8d7da;
    --custom-auth-bg-warning: #fff3cd;
    --custom-auth-bg-info: #e8f4fd;

    /* Text Colors */
    --custom-auth-text-primary: #333;
    --custom-auth-text-secondary: #666;
    --custom-auth-text-light: #999;
    --custom-auth-text-white: #fff;

    /* Border Colors */
    --custom-auth-border-light: #ddd;
    --custom-auth-border-primary: #007cba;
    --custom-auth-border-secondary: #dee2e6;
    --custom-auth-border-error: #dc3545;
    --custom-auth-border-warning: #ffeaa7;
    --custom-auth-border-info: #74b9ff;

    /* Font Sizes */
    --custom-auth-font-size-title: 24px;
    --custom-auth-font-size-button: 16px;
    --custom-auth-font-size-input: 14px;
    --custom-auth-font-size-label: 14px;
    --custom-auth-font-size-small: 12px;

    /* Font Weights */
    --custom-auth-font-weight-normal: 400;
    --custom-auth-font-weight-medium: 500;
    --custom-auth-font-weight-semibold: 600;
    --custom-auth-font-weight-bold: 600;

    /* Spacing (Padding/Margins) */
    --custom-auth-spacing-xs: 5px;
    --custom-auth-spacing-sm: 10px;
    --custom-auth-spacing-md: 15px;
    --custom-auth-spacing-lg: 20px;
    --custom-auth-spacing-xl: 30px;
    --custom-auth-spacing-xxl: 40px;

    /* Button specific spacing */
    --custom-auth-button-padding-vertical: 12px;
    --custom-auth-button-padding-horizontal: 20px;

    /* Form specific spacing */
    --custom-auth-form-padding: 20px;
    --custom-auth-field-margin: 15px;

    /* Shadows */
    --custom-auth-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --custom-auth-shadow-medium: 0 2px 10px rgba(0, 0, 0, 0.1);
    --custom-auth-shadow-heavy: 0 4px 8px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --custom-auth-transition-fast: 0.15s ease;
    --custom-auth-transition-normal: 0.2s ease;
    --custom-auth-transition-slow: 0.3s ease;
}

/* Base styles */
.custom-auth-login-container,
.custom-auth-register-container {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--custom-auth-form-padding);
    background: var(--custom-auth-bg-white);
    border: 1px solid var(--custom-auth-border-light);
    border-radius: var(--custom-auth-border-radius-cards);
    box-shadow: var(--custom-auth-shadow-medium);
}

.custom-auth-title {
    margin-top: 0;
    margin-bottom: var(--custom-auth-spacing-lg);
    color: var(--custom-auth-text-primary);
    text-align: center;
    font-size: var(--custom-auth-font-size-title);
    font-weight: var(--custom-auth-font-weight-semibold);
}

.custom-auth-field {
    margin-bottom: var(--custom-auth-spacing-md);
}

.custom-auth-field label {
    display: block;
    margin-bottom: var(--custom-auth-spacing-xs);
    font-weight: var(--custom-auth-font-weight-medium);
    color: var(--custom-auth-text-secondary);
}

.custom-auth-field input[type="text"],
.custom-auth-field input[type="email"],
.custom-auth-field input[type="password"],
.custom-auth-field input[type="url"] {
    width: 100%;
    padding: var(--custom-auth-spacing-sm);
    border: 1px solid var(--custom-auth-border-light);
    border-radius: var(--custom-auth-border-radius-inputs);
    font-size: var(--custom-auth-font-size-input);
    box-sizing: border-box;
}

.custom-auth-field input[type="text"]:focus,
.custom-auth-field input[type="email"]:focus,
.custom-auth-field input[type="password"]:focus,
.custom-auth-field input[type="url"]:focus {
    border-color: var(--custom-auth-border-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.custom-auth-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.custom-auth-remember {
    display: flex;
    align-items: center;
}


/* Submit Button with Loading State */
.custom-auth-submit-btn {
    position: relative;
    width: 100%;
    padding: var(--custom-auth-button-padding-vertical) var(--custom-auth-button-padding-horizontal);
    background: linear-gradient(135deg, var(--custom-auth-bg-primary) 0%, var(--custom-auth-color-primary-hover) 100%);
    color: var(--custom-auth-text-white);
    border: none;
    border-radius: var(--custom-auth-border-radius-buttons);
    font-size: var(--custom-auth-font-size-button);
    font-weight: var(--custom-auth-font-weight-semibold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: var(--custom-auth-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--custom-auth-shadow-light);
    text-transform: none;
}

.custom-auth-submit-btn:hover {
    background: var(--custom-auth-color-primary-dark) !important;
    color: var(--custom-auth-button-hover-text-color) !important;
    box-shadow: var(--custom-auth-shadow-heavy);
    transform: translateY(-1px);
}

.custom-auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--custom-auth-shadow-light);
}

.custom-auth-submit-btn:disabled {
    background: var(--custom-auth-color-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.custom-auth-submit-btn .custom-auth-loading {
    display: none;
}

.custom-auth-submit-btn:disabled .custom-auth-submit-text {
    display: none;
}

.custom-auth-submit-btn:disabled .custom-auth-loading {
    display: inline;
}

/* Google Button Styles */
.custom-auth-google-btn {
    position: relative;
    width: 100%;
    padding: var(--custom-auth-button-padding-vertical) var(--custom-auth-button-padding-horizontal);
    background: var(--custom-auth-bg-white);
    color: var(--custom-auth-text-primary);
    border: 1px solid var(--custom-auth-border-light);
    border-radius: var(--custom-auth-border-radius-buttons);
    font-size: var(--custom-auth-font-size-button);
    font-weight: var(--custom-auth-font-weight-medium);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: var(--custom-auth-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--custom-auth-shadow-light);
    text-decoration: none;
}

.custom-auth-google-btn:hover {
    background: var(--custom-auth-bg-light);
    border-color: var(--custom-auth-border-light);
    box-shadow: var(--custom-auth-shadow-heavy);
    transform: translateY(-1px);
}

.custom-auth-google-btn:active {
    transform: translateY(0);
    box-shadow: var(--custom-auth-shadow-light);
}

.custom-auth-google-btn:disabled {
    background: var(--custom-auth-bg-light);
    color: var(--custom-auth-text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: var(--custom-auth-border-light);
}

.custom-auth-google-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.custom-auth-errors {
    background: var(--custom-auth-bg-error);
    border: 1px solid var(--custom-auth-border-error);
    border-radius: var(--custom-auth-border-radius-notices);
    padding: var(--custom-auth-spacing-sm);
    margin-bottom: var(--custom-auth-spacing-lg);
}

.custom-auth-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-auth-errors li {
    color: var(--custom-auth-color-error);
    margin-bottom: var(--custom-auth-spacing-xs);
}

.custom-auth-errors li:last-child {
    margin-bottom: 0;
}

.custom-auth-notice {
    background: var(--custom-auth-bg-info);
    border: 1px solid var(--custom-auth-border-info);
    border-radius: var(--custom-auth-border-radius-notices);
    padding: var(--custom-auth-spacing-sm);
    margin-bottom: var(--custom-auth-spacing-md);
}

.custom-auth-notice p {
    margin: 0;
    color: var(--custom-auth-color-info);
}

.custom-auth-links {
    text-align: center;
    margin-top: var(--custom-auth-spacing-md);
    padding-top: var(--custom-auth-spacing-md);
    border-top: 1px solid #eee;
}

.custom-auth-links a {
    color: var(--custom-auth-color-primary);
    text-decoration: none;
}

.custom-auth-links a:hover {
    text-decoration: underline;
}

.custom-auth-divider {
    position: relative;
    text-align: center;
    margin: var(--custom-auth-spacing-lg) 0;
}

.custom-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--custom-auth-bg-light);
}

.custom-auth-divider span {
    background: #fff;
    padding: 0 15px;
    color: var(--custom-auth-text-secondary);
    font-size: var(--custom-auth-font-size-label);
    position: relative;
    display: inline-block;
}

.custom-auth-divider span::before,
.custom-auth-divider span::after {
    content: '';
    color: var(--custom-auth-text-light);
    font-size: var(--custom-auth-font-size-small);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.custom-auth-divider span::before {
    right: 100%;
    margin-right: 8px;
}

.custom-auth-divider span::after {
    left: 100%;
    margin-left: 8px;
}

/* Google Login Button */
.custom-auth-google-login,
.custom-auth-google-register {
    text-align: center;
}


.google-icon {
    display: flex;
    align-items: center;
}

.google-icon svg {
    width: 18px;
    height: 18px;
}

/* Password Field with Toggle */
.custom-auth-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-auth-password-field input {
    flex: 1;
    padding-right: 45px;
}

.custom-auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--custom-auth-spacing-xs);
    border-radius: 3px;
    color: var(--custom-auth-text-secondary);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-auth-password-toggle:hover {
    color: var(--custom-auth-text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.custom-auth-password-toggle.active {
    color: var(--custom-auth-color-primary);
    background: rgba(0, 124, 186, 0.1);
}

.custom-auth-password-toggle:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.custom-auth-password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 32;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 5px;
}

.password-strength-indicator {
    height: 4px;
    background: var(--custom-auth-bg-light);
    border-radius: 2px;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.password-strength-text {
    font-size: var(--custom-auth-font-size-small);
    color: var(--custom-auth-text-secondary);
}

/* Password Requirements */
.password-requirements {
    margin-top: 10px;
    padding: var(--custom-auth-spacing-sm);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--custom-auth-border-radius-inputs);
    font-size: 13px;
}

.password-requirements-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin-bottom: 4px;
    color: var(--custom-auth-color-error);
    position: relative;
    padding-left: 20px;
}

.password-requirements li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--custom-auth-color-error);
    font-weight: bold;
}

.password-requirements li.met {
    color: var(--custom-auth-color-success);
}

.password-requirements li.met:before {
    content: '✓';
    color: var(--custom-auth-color-success);
}

.password-mismatch {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Newsletter Subscription Block */
.custom-auth-newsletter-block {
    margin-bottom: 20px;
    padding: var(--custom-auth-spacing-md);
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: var(--custom-auth-border-radius-cards);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-content {
    position: relative;
}

.newsletter-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: var(--custom-auth-font-size-label);
    line-height: 1.4;
    margin-bottom: 8px;
    position: relative;
    padding-left: 35px;
}

.newsletter-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #6c757d;
    border-radius: var(--custom-auth-border-radius-inputs);
    transition: all 0.2s ease;
}

.newsletter-label:hover .checkmark {
    border-color: #007cba;
}

.newsletter-checkbox:checked ~ .checkmark {
    background-color: #007cba;
    border-color: #007cba;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.newsletter-checkbox:checked ~ .checkmark:after {
    display: block;
}

.newsletter-text {
    flex: 1;
    color: #495057;
}

.newsletter-details {
    margin-left: 35px;
    color: #6c757d;
    font-size: var(--custom-auth-font-size-small);
    line-height: 1.3;
}

/* Email Confirmation Notice */
.custom-auth-email-confirmation-notice {
    margin-bottom: 20px;
    padding: var(--custom-auth-spacing-md);
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: var(--custom-auth-border-radius-cards);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-confirmation-content {
    text-align: center;
}

.email-confirmation-content h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 18px;
    font-weight: 600;
}

.email-confirmation-content p {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: var(--custom-auth-font-size-label);
}

.resend-confirmation-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--custom-auth-border-radius-inputs);
    cursor: pointer;
    font-size: var(--custom-auth-font-size-label);
    font-weight: 500;
    transition: background-color 0.2s;
}

.resend-confirmation-btn:hover {
    background: #005a87;
}

/* Newsletter Form */
.custom-newsletter-container {
    max-width: 500px;
    margin: var(--custom-auth-spacing-lg) auto;
    padding: var(--custom-auth-spacing-lg);
    background: #f8f9fa;
    border-radius: var(--custom-auth-border-radius-cards);
    text-align: center;
}

.newsletter-title {
    margin: 0 0 10px 0;
    color: var(--custom-auth-text-primary);
    font-size: 24px;
    font-weight: 600;
}

.newsletter-description {
    margin: 0 0 20px 0;
    color: var(--custom-auth-text-secondary);
    font-size: 16px;
    line-height: 1.4;
}

.newsletter-field {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-field input[type="email"] {
    flex: 1;
    padding: var(--custom-auth-button-padding-vertical) var(--custom-auth-spacing-md);
    border: 2px solid var(--custom-auth-border-secondary);
    border-radius: var(--custom-auth-border-radius-buttons);
    font-size: var(--custom-auth-font-size-button);
    transition: var(--custom-auth-transition-normal);
}

.newsletter-field input[type="email"]:focus {
    outline: none;
    border-color: var(--custom-auth-color-primary);
}

.newsletter-field button {
    padding: var(--custom-auth-button-padding-vertical) var(--custom-auth-button-padding-horizontal);
    background: var(--custom-auth-color-primary);
    color: var(--custom-auth-text-white);
    border: none;
    border-radius: var(--custom-auth-border-radius-buttons);
    font-size: var(--custom-auth-font-size-button);
    font-weight: var(--custom-auth-font-weight-semibold);
    cursor: pointer;
    transition: var(--custom-auth-transition-normal);
    white-space: nowrap;
}

.newsletter-field button:hover {
    background: var(--custom-auth-color-primary-hover);
}

/* Google OAuth Newsletter Indicator */
.custom-auth-google-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-indicator {
    color: var(--custom-auth-color-success);
    margin-left: 4px;
    opacity: 0.8;
}

.newsletter-indicator svg {
    vertical-align: middle;
}

/* Universal Newsletter Checkbox Styling */
.newsletter-checkbox {
    margin-right: 8px;
}

/* Forgot Password Form */
.custom-forgot-password-container {
    max-width: 400px;
    margin: var(--custom-auth-spacing-lg) auto;
}

.forgot-password-description {
    color: var(--custom-auth-text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Reset Password Form */
.custom-reset-password-container {
    max-width: 400px;
    margin: var(--custom-auth-spacing-lg) auto;
}

.reset-password-description {
    color: var(--custom-auth-text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Unsubscribe Form */
.custom-unsubscribe-container {
    max-width: 400px;
    margin: var(--custom-auth-spacing-lg) auto;
}

.unsubscribe-description {
    color: var(--custom-auth-text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Error and Success Messages */
.custom-auth-error {
    background: #f8d7da;
    color: #721c24;
    padding: var(--custom-auth-spacing-md);
    border: 1px solid #f5c6cb;
    border-radius: var(--custom-auth-border-radius-inputs);
    margin: var(--custom-auth-spacing-lg) 0;
    text-align: center;
}

.custom-auth-success {
    background: #d4edda;
    color: #155724;
    padding: var(--custom-auth-spacing-md);
    border: 1px solid #c3e6cb;
    border-radius: var(--custom-auth-border-radius-inputs);
    margin: var(--custom-auth-spacing-lg) 0;
    text-align: center;
}

.newsletter-unsubscription-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
}

/* Password Toggle for Reset Form */
.custom-reset-password-container .custom-auth-password-field {
    position: relative;
}

.custom-reset-password-container .custom-auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--custom-auth-text-secondary);
    cursor: pointer;
    padding: var(--custom-auth-spacing-xs);
}

/* Responsive Design */
@media (max-width: 480px) {
    .custom-auth-login-container,
    .custom-auth-register-container {
        margin: 10px;
        padding: var(--custom-auth-spacing-md);
    }

    .custom-auth-title {
        font-size: 20px;
    }

    .custom-auth-google-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Form States */
.custom-auth-field input.password-mismatch {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

/* Loading States */
.custom-auth-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.custom-auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Messages */
.custom-auth-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--custom-auth-border-radius-inputs);
    padding: var(--custom-auth-spacing-sm);
    margin-bottom: 20px;
}

.custom-auth-success p {
    margin: 0;
    color: #155724;
}

/* Required Fields */
.required {
    color: #ff6b6b;
    font-weight: bold;
}


/* Logged In State */
.custom-auth-logged-in {
    text-align: center;
    padding: var(--custom-auth-spacing-lg);
}

.custom-auth-logged-in p {
    margin-bottom: 15px;
}

.custom-auth-logout-link {
    display: inline-block;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: var(--custom-auth-border-radius-inputs);
    transition: background-color 0.2s;
}

.custom-auth-logout-link:hover {
    background: #c82333;
}

/* Success Messages */
.custom-auth-messages {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--custom-auth-border-radius-inputs);
    padding: var(--custom-auth-spacing-sm);
    margin-bottom: 20px;
}

.custom-auth-messages ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-auth-messages li {
    color: #155724;
    margin-bottom: 5px;
}

.custom-auth-messages li:last-child {
    margin-bottom: 0;
}

/* Profile Styles */
.custom-auth-profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--custom-auth-spacing-lg);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--custom-auth-border-radius-cards);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-auth-profile-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.custom-auth-profile-avatar {
    flex-shrink: 0;
}

.custom-auth-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.custom-auth-profile-info {
    flex: 1;
}

.custom-auth-profile-field {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.custom-auth-profile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.custom-auth-profile-field label {
    font-weight: 600;
    color: var(--custom-auth-text-primary);
    display: block;
    margin-bottom: 5px;
}

.custom-auth-profile-field span {
    color: var(--custom-auth-text-secondary);
}

.custom-auth-profile-actions {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-auth-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: var(--custom-auth-border-radius-inputs);
    font-weight: 500;
    transition: background-color 0.2s;
}

.custom-auth-button:hover {
    background: #005a87;
}

.custom-auth-logout {
    background: #dc3545;
}

.custom-auth-logout:hover {
    background: #c82333;
}

/* Cloudflare Turnstile CAPTCHA */
.custom-auth-turnstile-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.cf-turnstile {
    margin: 0 auto;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .custom-auth-profile-content {
        flex-direction: column;
        text-align: center;
    }

    .custom-auth-profile-actions {
        flex-direction: column;
    }

    .custom-auth-button {
        width: 100%;
        max-width: 200px;
    }

    .custom-auth-turnstile-container {
        margin: 10px 0;
    }
}
