/* auth.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #111827;
}

.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.auth-container {
    background: white;
    width: 100%;
    max-width: 680px;
    padding: 40px 20px;
    margin: 0 auto;
    border-radius: 16px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
}

/* Login Page Overrides */
.page-login.auth-page-wrapper {
    background-color: #fff;
}
.page-login .auth-container {
    max-width: 480px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    max-height: 100px;
    max-width: 250px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: #111827;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    background-color: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Readonly/Disabled state override */
input[readonly],
input[disabled] {
    background-color: #e5e7eb;
    cursor: not-allowed;
    color: #6b7280;
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
}

.remember-forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: -8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4b5563;
}

.remember-me input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 16px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Members Only Notice */
.members-only-notice {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* Notification Modal */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.notification-modal.active {
    display: flex;
}

.notification-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.notification-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.notification-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.legal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.legal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.legal-item input[type="checkbox"] {
    margin-top: 3px;
    min-width: 16px;
    height: 16px;
}

.legal-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.legal-link {
    color: #4f46e5;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.disclaimer-text {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-top: 15px;
    padding: 0 10px;
}

/* code input styling */
input[type="text"].code-input {
    width: 56px !important;
    height: 64px !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    color: #111827 !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: inline-block !important;
}

.code-input.filled {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

input[type="text"].code-input:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
    transform: translateY(-2px) !important;
}

/* Steps indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s;
}

.step-dot.active { background: #3b82f6; width: 24px; border-radius: 5px; }
.step-dot.completed { background: #10b981; }

/* Loading Spinner & Disabled Button State */
@keyframes btnSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-spinner {
    animation: btnSpin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
