/* ============================================
   BizConnect - Public User-Facing Styles
   Color Palette: #11191f, #f4f3ec, #ffed90, #fff
   Font: Instrument Sans
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #11191f;
    --cream: #f4f3ec;
    --gold: #ffed90;
    --gold-hover: #ffe564;
    --white: #ffffff;
    --text: #11191f;
    --text-muted: #6b7280;
    --border: #e5e5e0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-hover);
}

/* ============ NAVBAR ============ */
.navbar {
    background: var(--primary);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.navbar-brand span {
    color: var(--gold);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-links .btn {
    margin-left: 8px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.navbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.navbar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 200;
    margin-top: 8px;
}

.navbar-dropdown.show {
    display: block;
}

.navbar-dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 14px;
}

.navbar-dropdown a:hover {
    background: var(--cream);
}

.navbar-dropdown .divider {
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--primary);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #1a2730;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(255, 237, 144, 0.1);
    color: var(--text);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 18px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 237, 144, 0.3);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body {
    padding: 24px;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

/* ============ ALERTS ============ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #ecfdf5;
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: var(--info);
    color: #1e40af;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1a2730 50%, var(--primary) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

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

.auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gold);
    color: var(--primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 14px;
}

.auth-logo h2 {
    font-size: 24px;
    font-weight: 700;
}

.auth-logo h2 span {
    color: var(--gold-hover);
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--gold-hover);
}

/* ============ REGISTRATION FORM ============ */
.reg-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.reg-step.active {
    color: var(--primary);
    font-weight: 700;
}

.reg-step.done {
    color: var(--success);
}

.reg-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.reg-step.active .reg-step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
}

.reg-step.done .reg-step-num {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.reg-step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
}

.reg-step.done+.reg-step-line {
    background: var(--success);
}

.reg-section {
    display: none;
}

.reg-section.active {
    display: block;
}

.reg-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.reg-section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============ VERIFICATION UI ============ */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 50px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 237, 144, 0.3);
}

.verification-card {
    text-align: center;
    padding: 40px;
}

.verification-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.verification-icon.pending {
    background: #fef3c7;
}

.verification-icon.success {
    background: #d1fae5;
}

.resend-link {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

.resend-link a {
    color: var(--primary);
    font-weight: 600;
}

.timer {
    font-weight: 600;
    color: var(--primary);
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-md {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    padding: 32px 0 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

/* ============ BADGE ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gold {
    background: var(--gold);
    color: var(--primary);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ============ UTILITY ============ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0 24px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.footer-brand span {
    color: var(--gold);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar-links.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 16px;
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .otp-input {
        width: 44px;
        height: 48px;
        font-size: 18px;
    }

    .reg-step span:not(.reg-step-num) {
        display: none;
    }
}