/* ===================================
   Auth Pages - Dark Mode n8n Style
   =================================== */

/* Auth Page Container */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* Dark Mode - n8n inspired gradient background */
[data-bs-theme="dark"] .auth-page,
.dark .auth-page {
    background: #0c0810;
    background-image: 
        radial-gradient(ellipse at top, #37174d 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, #180d1c 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, #150a15 0%, transparent 40%);
    background-attachment: fixed;
}

/* Auth Card */
.auth-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
}

[data-bs-theme="dark"] .auth-card,
.dark .auth-card {
    background: #150f18;
    border: 1px solid #2a1f35;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .auth-title,
.dark .auth-title {
    color: #f5f0ff;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #718096;
}

[data-bs-theme="dark"] .auth-subtitle,
.dark .auth-subtitle {
    color: #a89bb8;
}

.auth-link {
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #4f46e5;
}

[data-bs-theme="dark"] .auth-link,
.dark .auth-link {
    color: #c4b5fd;
}

[data-bs-theme="dark"] .auth-link:hover,
.dark .auth-link:hover {
    color: #a78bfa;
}

/* Social Login Buttons */
.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.social-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

[data-bs-theme="dark"] .social-btn,
.dark .social-btn {
    background: #1f1726;
    border-color: #2a1f35;
    color: #a89bb8;
}

[data-bs-theme="dark"] .social-btn:hover,
.dark .social-btn:hover {
    background: #2a1f35;
    border-color: #3d2d4a;
    color: #f5f0ff;
}

.social-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Divider */
.auth-divider {
    position: relative;
    margin: 1.5rem 0;
}

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

[data-bs-theme="dark"] .auth-divider::before,
.dark .auth-divider::before {
    background: #2a1f35;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 0.75rem;
    color: #a0aec0;
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .auth-divider span,
.dark .auth-divider span {
    background: #150f18;
    color: #6b5d7a;
}

/* Form Elements */
.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .auth-label,
.dark .auth-label {
    color: #a89bb8;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1a202c;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] .auth-input,
.dark .auth-input {
    background: #1f1726;
    border-color: #2a1f35;
    color: #f5f0ff;
}

[data-bs-theme="dark"] .auth-input:focus,
.dark .auth-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.auth-input::placeholder {
    color: #a0aec0;
}

[data-bs-theme="dark"] .auth-input::placeholder,
.dark .auth-input::placeholder {
    color: #6b5d7a;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

[data-bs-theme="dark"] .auth-submit-btn,
.dark .auth-submit-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
}

[data-bs-theme="dark"] .auth-submit-btn:hover,
.dark .auth-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

/* Remember Me / Forgot Password */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #718096;
    cursor: pointer;
}

[data-bs-theme="dark"] .auth-checkbox-label,
.dark .auth-checkbox-label {
    color: #a89bb8;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e0;
    margin-right: 0.5rem;
    cursor: pointer;
}

[dir="rtl"] .auth-checkbox {
    margin-right: 0;
    margin-left: 0.5rem;
}

[data-bs-theme="dark"] .auth-checkbox,
.dark .auth-checkbox {
    background: #1f1726;
    border-color: #2a1f35;
}

/* Error Messages */
.auth-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

[data-bs-theme="dark"] .auth-error,
.dark .auth-error {
    color: #fc8181;
}

/* Success Messages */
.auth-success {
    color: #38a169;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

[data-bs-theme="dark"] .auth-success,
.dark .auth-success {
    color: #68d391;
}

/* Input Validation States */
.auth-input.border-red-500,
.auth-input.input-error {
    border-color: #e53e3e !important;
}

.auth-input.border-green-500,
.auth-input.input-success {
    border-color: #38a169 !important;
}

.auth-input.border-yellow-500,
.auth-input.input-warning {
    border-color: #d69e2e !important;
}

.auth-input.border-blue-500,
.auth-input.input-info {
    border-color: #3182ce !important;
}

[data-bs-theme="dark"] .auth-input.border-red-500,
[data-bs-theme="dark"] .auth-input.input-error,
.dark .auth-input.border-red-500,
.dark .auth-input.input-error {
    border-color: #fc8181 !important;
}

[data-bs-theme="dark"] .auth-input.border-green-500,
[data-bs-theme="dark"] .auth-input.input-success,
.dark .auth-input.border-green-500,
.dark .auth-input.input-success {
    border-color: #68d391 !important;
}

/* Error message styling */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

[data-bs-theme="dark"] .error-message,
.dark .error-message {
    color: #fc8181;
}

/* Password strength colors */
.text-red-600 { color: #e53e3e; }
.text-yellow-600 { color: #d69e2e; }
.text-blue-600 { color: #3182ce; }
.text-green-600 { color: #38a169; }

[data-bs-theme="dark"] .text-red-600,
.dark .text-red-600 { color: #fc8181; }

[data-bs-theme="dark"] .text-yellow-600,
.dark .text-yellow-600 { color: #f6e05e; }

[data-bs-theme="dark"] .text-blue-600,
.dark .text-blue-600 { color: #90cdf4; }

[data-bs-theme="dark"] .text-green-600,
.dark .text-green-600 { color: #68d391; }

