/* ==========================================================================
   Lumen Aether Bank (LAFP) - Clean White & Orange Auth Styling
   ========================================================================== */

:root {
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-focus: #22c55e;
    
    --text-main: #111111;
    --text-muted: #6b7280;
    
    --color-orange: #22c55e;
    --color-orange-hover: #16a34a;
    --color-green: #22c55e;
    --color-danger: #ef4444;
    
    --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.auth-header {
    width: 100%;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    padding: 8px 16px;
    background-color: #22c55e;
    border-radius: 20px;
    font-weight: 900;
    font-size: 16px;
    color: #000000;
    letter-spacing: 1px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Auth Card Wrapper */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 32px 28px;
}

/* Tab Switcher */
.auth-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: #22c55e;
    color: #000000;
    font-weight: 700;
}

/* Form Panel */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

.panel-header {
    text-align: center;
    margin-bottom: 22px;
}

.panel-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: orange;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--text-main);
}

/* Password Strength Indicator */
.password-strength-con {
    margin-top: 6px;
}

.strength-bar-bg {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

/* Options / Checkbox */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    cursor: pointer;
}

.custom-checkbox {
    accent-color: #22c55e;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.link-gold {
    color: #15803d;
    text-decoration: none;
    font-weight: 600;
}

.link-gold:hover {
    text-decoration: underline;
}

/* Submit Button - Matches .btn in index.css */
.btn-submit {
    width: 100%;
    height: 48px;
    background-color: #22c55e;
    border: none;
    border-radius: 24px;
    color: #000000;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #16a34a;
}

.btn-submit:active {
    transform: scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Security Guarantee Text */
.security-guarantee {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.security-guarantee svg {
    color: #10b981;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 18px;
    color: var(--text-main);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    max-width: 380px;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid orange;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.auth-footer {
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
}

@media (max-width: 480px) {
    .auth-card {
        border: none;
        box-shadow: none;
        padding: 16px 12px;
    }
    .security-badge span {
        display: none;
    }
}
