/* ==========================================================================
   NexusVendor Auth Stylesheet
   AxisFlow Solutions (Accra, Ghana)
   Tokens: Clean Light Surface, Atmospheric Grid, 8px Radius, Strict CSP Compliant
   ========================================================================== */

:root {
    --primary: #0F172A;
    --primary-accent: #0284c7;
    --primary-accent-hover: #0369a1;
    --surface: #FFFFFF;
    --background: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
    background-attachment: fixed;
}

.auth-container {
    width: 100%;
    max-width: 760px;
}

.auth-container.login {
    max-width: 460px;
}

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

.brand-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.65rem;
}

.brand-logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-pill {
    background: #EFF6FF;
    color: var(--primary-accent);
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-weight: 700;
}

.auth-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

/* Card Container */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 0 1px 1px rgba(0, 0, 0, 0.02);
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #F87171;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================================================
   Multi-Step Progress Stepper (Register)
   ========================================================================== */
.auth-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.25rem;
    position: relative;
    padding: 0 0.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    transition: all 0.2s ease;
    margin-bottom: 0.4rem;
}

.step-label {
    font-size: 0.725rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
}

.step-item.active .step-circle {
    background: var(--primary-accent);
    color: #FFFFFF;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.step-item.active .step-label {
    color: var(--primary-accent);
}

.step-item.completed .step-circle {
    background: #10B981;
    color: #FFFFFF;
    border-color: #10B981;
}

.step-item.completed .step-label {
    color: #10B981;
}

.step-divider {
    position: absolute;
    top: 18px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #E2E8F0;
    z-index: 1;
}

.step-pane {
    display: none;
    animation: stepFadeIn 0.2s ease-in-out;
}

.step-pane.active {
    display: block;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Industry Vertical Selector (Register)
   ========================================================================== */
.industry-field-hint {
    margin-bottom: 0.75rem;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

.industry-card {
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.industry-card:hover {
    border-color: #93c5fd;
    background: #F8FAFC;
    transform: translateY(-2px);
}

.industry-card.selected {
    border-color: var(--primary-accent);
    background: #F0F9FF;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.industry-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    background: #EFF6FF;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-info {
    flex: 1;
}

.industry-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.2rem;
}

.industry-desc {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.4;
}

/* ==========================================================================
   Plan Selector Styles (Register)
   ========================================================================== */
.plan-cycle-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.cycle-btn {
    flex: 1;
    text-align: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cycle-btn.active {
    background: #FFFFFF;
    color: var(--primary-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #FFFFFF;
}

.plan-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.plan-card.selected {
    border-color: var(--primary-accent);
    background: #F0F9FF;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary-accent);
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.plan-price-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.plan-price-period {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-limits {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 6px;
    border-top: 1px dashed #E2E8F0;
    padding-top: 6px;
}

/* ==========================================================================
   Form Fields, Inputs & Icons
   ========================================================================== */
.form-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-accent);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 0.5rem;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-main);
    background: #FFFFFF;
    transition: all 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Input with Left Icon & Right Password Toggle */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input.has-icon {
    padding-left: 2.65rem;
}

.form-input.has-icon-both {
    padding-left: 2.65rem;
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-accent);
    background: #F1F5F9;
}

/* Form Options Row (Remember Me + Support Link) */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.825rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.remember-me-label input[type="checkbox"] {
    accent-color: var(--primary-accent);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.forgot-pass-link {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
}

.forgot-pass-link:hover {
    text-decoration: underline;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.slug-preview {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    background: #F8FAFC;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px dashed var(--border);
}

/* ==========================================================================
   GRA Statutory Benefits Callout Box (Register)
   ========================================================================== */
.gra-benefits-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin-top: 0.6rem;
    margin-bottom: 1.25rem;
}

.gra-benefits-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gra-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    font-size: 0.775rem;
    color: #334155;
}

@media (max-width: 640px) {
    .gra-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.gra-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.gra-benefit-item strong {
    color: #0F172A;
}

.gra-help-link {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
}

.gra-help-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Transparent Settlement Card
   ========================================================================== */
.fee-breakdown-card {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    font-size: 0.8125rem;
    color: #166534;
}

.fee-breakdown-header {
    font-weight: 800;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fee-breakdown-card ul {
    list-style: none;
    margin-top: 0.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

@media (max-width: 640px) {
    .fee-breakdown-card ul {
        grid-template-columns: 1fr;
    }
}

.fee-breakdown-card li {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Review Summary Card
   ========================================================================== */
.reg-summary-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.reg-summary-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
}

.reg-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .reg-summary-grid {
        grid-template-columns: 1fr;
    }
}

.reg-summary-item {
    font-size: 0.8rem;
}

.reg-summary-label {
    color: var(--text-muted);
    margin-bottom: 2px;
}

.reg-summary-val {
    font-weight: 700;
    color: #0F172A;
}

/* ==========================================================================
   Step Nav & Submit Buttons
   ========================================================================== */
.step-nav-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
}

.btn-step-back {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-step-back:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.btn-step-next {
    background: var(--primary-accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-size: 0.925rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-step-next:hover {
    background: var(--primary-accent-hover);
    transform: translateY(-1px);
}

.btn-submit {
    width: 100%;
    background: var(--primary-accent);
    color: #FFFFFF;
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--primary-accent-hover);
    transform: translateY(-1px);
}

/* Security Trust Strip (Login Card) */
.auth-security-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
    font-size: 0.75rem;
    color: #94A3B8;
    text-align: center;
}

/* Below Card Secondary Links */
.auth-secondary-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-secondary-links a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-secondary-links a:hover {
    text-decoration: underline;
}

.back-to-home-link {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500 !important;
    transition: color 0.15s ease;
}

.back-to-home-link:hover {
    color: var(--text-main) !important;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 700;
}

/* General Utilities */
.hidden {
    display: none !important;
}
