/* Ashimoto Account Pages — Login, Register, Forgot Password standalone forms */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    max-width: 400px;
    word-break: break-word;
}

.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.login-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    max-width: 900px;
    width: 100%;
}

.value-prop-card { flex: 1; min-width: 0; }
.login-card { flex: 1; min-width: 0; }

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 440px;
    }
}

/* ── Login Page ── */
.account-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.account-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f7 0%, #e2e8ed 100%);
    padding: 15px 1rem 2rem 1rem;
}

.account-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-logo { height: 320px; width: auto; }

.account-subtitle {
    text-align: center;
    margin-bottom: 0.75rem;
}

.account-subtitle p {
    color: #5d7a8c;
    font-size: 1rem;
    margin: 0;
}

/* ── Value Proposition Card ── */
.value-prop-inner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-prop-header { text-align: center; margin-bottom: 1rem; }
.value-prop-header i { font-size: 2rem; color: #f39c12; margin-bottom: 0.5rem; }

.value-prop-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.value-prop-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

.value-prop-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.value-prop-feature { text-align: center; }
.value-prop-feature i { color: #f39c12; font-size: 1.125rem; }

.value-prop-feature span {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ── Login Form Card ── */
.login-form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(93, 122, 140, 0.15);
    overflow: hidden;
    border: 2px solid #e2e8ed;
    height: 100%;
    box-sizing: border-box;
}

.login-form-body { padding: 2rem; }

.validation-alert {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.validation-alert-text { color: #991b1b; font-size: 0.875rem; font-weight: 600; }

.form-group-login { margin-bottom: 1.25rem; }

.form-label-login {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.875rem;
}

.form-label-login i { color: #5d7a8c; margin-right: 0.375rem; }

.form-input-login {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8ed;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input-login:focus {
    border-color: #5d7a8c;
    box-shadow: 0 0 0 3px rgba(93, 122, 140, 0.15);
    outline: none;
}

.form-input-password {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8ed;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input-password:focus {
    border-color: #5d7a8c;
    box-shadow: 0 0 0 3px rgba(93, 122, 140, 0.15);
    outline: none;
}

.password-wrapper-login { position: relative; }

.password-toggle-btn {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5d7a8c;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

.validation-msg { color: #ef4444; font-size: 0.8125rem; display: block; margin-top: 0.375rem; }

.forgot-link-wrapper { text-align: right; margin-top: 0.5rem; }
.forgot-link { color: #5d7a8c; font-size: 0.8125rem; text-decoration: none; }

.remember-me-group { margin-bottom: 1.5rem; }

.remember-me-label { display: flex; align-items: center; cursor: pointer; }

.remember-me-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #5d7a8c;
}

.remember-me-text { color: #5d7a8c; font-size: 0.875rem; }

.btn-signin {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #5d7a8c 0%, #4a6577 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(93, 122, 140, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 122, 140, 0.45);
}

/* ── Footer ── */
.account-footer { text-align: center; margin-top: 1.5rem; }
.account-footer-subtitle { color: #5d7a8c; font-size: 0.8125rem; margin: 0 0 0.75rem 0; }
.account-footer-subtitle i { margin-right: 0.375rem; }

.account-footer-links { color: #94a3b8; font-size: 0.75rem; margin: 0; }
.account-footer-links a { color: #5d7a8c; text-decoration: none; }
.account-footer-links .sep { margin: 0 0.5rem; }

.account-footer-copy { color: #94a3b8; font-size: 0.6875rem; margin: 0.5rem 0 0 0; }

/* ── ForgotPassword / ResetPassword Shared ── */
.fp-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f7 0%, #e2e8ed 100%);
}

.fp-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.fp-logo { margin-bottom: 1rem; }
.fp-logo img { height: 200px; width: auto; }

.fp-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(93, 122, 140, 0.15);
    border: 2px solid #e2e8ed;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.fp-card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 1.5rem;
    text-align: center;
}

.fp-card-header h1 { color: white; margin: 0; font-size: 1.25rem; font-weight: 700; }
.fp-card-header p { color: rgba(255, 255, 255, 0.8); margin: 0.5rem 0 0 0; font-size: 0.875rem; }
.fp-card-body { padding: 2rem; }

.fp-form-group { margin-bottom: 1.5rem; }

.fp-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.875rem;
}

.fp-form-label i { color: #5d7a8c; margin-right: 0.375rem; }

.fp-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8ed;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.fp-form-input:focus {
    outline: none;
    border-color: #5d7a8c;
    box-shadow: 0 0 0 3px rgba(93, 122, 140, 0.15);
}

.fp-form-input.error { border-color: #ef4444; }

.method-selector { display: none; margin-top: 1.5rem; }
.method-selector.visible { display: block; }

.method-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8ed;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-option:hover:not(.disabled) { border-color: #5d7a8c; background: #f8fafc; }
.method-option.selected { border-color: #5d7a8c; background: rgba(93, 122, 140, 0.1); }
.method-option i { font-size: 1.5rem; color: #5d7a8c; margin-right: 1rem; width: 32px; text-align: center; }
.method-option .method-info h3 { margin: 0; font-size: 0.9375rem; color: #2c3e50; }
.method-option .method-info p { margin: 0.25rem 0 0 0; font-size: 0.8125rem; color: #64748b; }
.method-option.disabled { opacity: 0.5; cursor: not-allowed; }
.method-option.disabled:hover { border-color: #e2e8ed; background: white; }

.fp-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fp-btn-primary {
    background: linear-gradient(135deg, #5d7a8c 0%, #4a6577 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(93, 122, 140, 0.35);
}

.fp-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(93, 122, 140, 0.45); }
.fp-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.fp-btn-secondary {
    background: #f1f5f9;
    color: #5d7a8c;
    margin-top: 0.75rem;
}

.fp-btn-secondary:hover { background: #e2e8f0; }

.fp-alert {
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.fp-alert-error { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.fp-alert-success { background: #f0fdf4; border-left: 4px solid #10b981; color: #166534; }
.fp-alert-info { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }

.fp-back-link { text-align: center; margin-top: 1.5rem; }
.fp-back-link a { color: #5d7a8c; text-decoration: none; font-size: 0.875rem; }
.fp-back-link a:hover { text-decoration: underline; }

.fp-success { display: none; text-align: center; padding: 1rem 0; }
.fp-success.visible { display: block; }
.fp-success i { font-size: 3rem; color: #10b981; margin-bottom: 1rem; }
.fp-success h2 { color: #2c3e50; margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.fp-success p { color: #64748b; margin: 0; font-size: 0.9375rem; line-height: 1.6; }

.hidden { display: none !important; }

.step-indicator { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: #e2e8ed; }
.step-dot.active { background: #5d7a8c; }

/* ── Reset Password Specific ── */
.rp-password-wrapper { position: relative; }

.rp-password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5d7a8c;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

.code-input-group { display: flex; gap: 0.5rem; justify-content: center; }

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e2e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #5d7a8c;
    box-shadow: 0 0 0 3px rgba(93, 122, 140, 0.15);
}

.password-requirements { font-size: 0.8125rem; color: #64748b; margin-top: 0.5rem; }
.password-requirements ul { margin: 0.5rem 0 0 0; padding-left: 1.25rem; }
.password-requirements li { margin-bottom: 0.25rem; }
.password-requirements li.valid { color: #10b981; }
.password-requirements li.valid::marker { content: "ok "; }

.password-strength { height: 4px; background: #e2e8ed; border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }

.password-strength-bar { height: 100%; width: 0; transition: all 0.3s ease; }
.password-strength-bar.weak { width: 33%; background: #ef4444; }
.password-strength-bar.medium { width: 66%; background: #f59e0b; }
.password-strength-bar.strong { width: 100%; background: #10b981; }

.rp-success { text-align: center; padding: 1rem 0; }
.rp-success i { font-size: 3rem; color: #10b981; margin-bottom: 1rem; }
.rp-success h2 { color: #2c3e50; margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.rp-success p { color: #64748b; margin: 0 0 1.5rem 0; font-size: 0.9375rem; line-height: 1.6; }

.validation-error { color: #ef4444; font-size: 0.8125rem; display: block; margin-top: 0.375rem; }

@media (max-width: 480px) {
    .fp-card-body { padding: 1.5rem; }
    .fp-logo img { height: 150px; }
    .code-input { width: 42px; height: 48px; font-size: 1.25rem; }
}

/* ── Register Page ── */
.register-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
}

* { box-sizing: border-box; }

.register-container { width: 100%; max-width: 560px; }

.register-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 32px;
    text-align: center;
    color: white;
}

.register-header h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.register-header p { margin: 0; opacity: 0.8; font-size: 14px; }

.alpaca-prereq {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 3px solid #f59e0b;
    padding: 28px 32px;
}

.alpaca-prereq-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.alpaca-logo-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

.alpaca-prereq-header-text h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: white; }
.alpaca-prereq-header-text p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.6); }

.alpaca-prereq-body { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 20px; }
.alpaca-prereq-body strong { color: #fbbf24; }

.alpaca-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.alpaca-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.alpaca-check-item i { width: 20px; text-align: center; flex-shrink: 0; }
.alpaca-prereq-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-alpaca-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(245,158,11,0.35);
    transition: all 0.2s;
    min-width: 160px;
}

.btn-alpaca-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.5); }

.btn-alpaca-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-alpaca-guide:hover { background: rgba(255,255,255,0.14); color: white; }

.alpaca-already-done { margin-top: 14px; text-align: center; }
.alpaca-already-done button { background: none; border: none; color: rgba(255,255,255,0.45); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px; }
.alpaca-already-done button:hover { color: rgba(255,255,255,0.7); }

.register-form-section { display: none; padding: 32px; }
.register-form-section.visible { display: block; }

.invite-banner {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.invite-banner-icon { width: 40px; height: 40px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.invite-banner-icon i { color: white; font-size: 18px; }
.invite-banner-text { font-size: 14px; color: #065f46; }
.invite-banner-text strong { display: block; font-size: 15px; margin-bottom: 2px; }

.error-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 24px; text-align: center; margin-bottom: 24px; }
.error-banner i { font-size: 32px; color: #ef4444; margin-bottom: 12px; display: block; }
.error-banner p { margin: 0; color: #991b1b; font-size: 15px; line-height: 1.6; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-label .required { color: #ef4444; margin-left: 2px; }

.form-input { width: 100%; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 14px; color: #1e293b; transition: border-color 0.2s; background: #fff; }
.form-input:focus { outline: none; border-color: #5d7a8c; box-shadow: 0 0 0 3px rgba(93,122,140,0.15); }
.form-input.readonly { background: #f1f5f9; color: #64748b; cursor: not-allowed; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.btn-register {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16,185,129,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.5); }

.register-footer { padding: 16px 32px; background: #f8fafc; border-top: 1px solid #e2e8f0; text-align: center; }
.register-footer p { margin: 0; font-size: 13px; color: #64748b; }
.register-footer a { color: #5d7a8c; font-weight: 600; text-decoration: none; }
.register-footer a:hover { text-decoration: underline; }

.branding { text-align: center; margin-top: 24px; }
.branding p { color: #64748b; font-size: 13px; margin: 0; }
.branding strong { color: #94a3b8; }

.validation-summary { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: #991b1b; }
.validation-summary ul { margin: 0; padding-left: 20px; }
.validation-summary li { margin-bottom: 4px; }

/* Register invalid-invitation inline styles */
.reg-unavailable-header { background: linear-gradient(135deg,#7f1d1d 0%,#991b1b 100%); padding: 32px; text-align: center; color: white; }
.reg-unavailable-icon { font-size: 48px; margin-bottom: 16px; }
.reg-unavailable-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.reg-unavailable-body { padding: 32px; text-align: center; }
.reg-unavailable-contact { color: #64748b; font-size: 14px; margin-bottom: 24px; }
.reg-unavailable-login { display: inline-block; background: #5d7a8c; color: white; text-decoration: none; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.reg-unavailable-login i { margin-right: 8px; }

/* Register header icon */
.reg-header-icon { font-size: 48px; margin-bottom: 16px; }

/* Register prereq logo icon */
.reg-prereq-logo-icon { color: white; font-size: 1.25rem; }

/* Register agreement box */
.reg-agreement-box { background: #f8fafc; border-radius: 8px; padding: 16px; margin-bottom: 24px; border: 1px solid #e2e8f0; }
.reg-agreement-inner { display: flex; align-items: flex-start; gap: 10px; }
.reg-agreement-inner i { color: #5d7a8c; margin-top: 2px; }
.reg-agreement-text { font-size: 13px; color: #475569; line-height: 1.6; }

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .alpaca-prereq-actions { flex-direction: column; }
    .btn-alpaca-primary { min-width: unset; }
}
