﻿ 
:root {
    --green: #2E7D32;
    --green-light: #43A047;
    --green-pale: #E8F5E9;
    --green-mid: #C8E6C9;
    --accent: #FF6F00;
    --accent-light: #FFA726;
    --sidebar-bg: #0F2027;
    --white: #FFFFFF;
    --bg: #F4F6F0;
    --card: #FFFFFF;
    --text: #1C2B1E;
    --text-muted: #6B7280;
    --border: #E0E7E1;
    --red: #C62828;
    --yellow: #F57F17;
    --blue: #1565C0;
    --shadow: 0 2px 16px rgba(46,125,50,0.08);
    --shadow-md: 0 4px 24px rgba(46,125,50,0.13);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit',sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LEFT BRAND */
.auth-left {
    width: 420px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

    .auth-left::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(46,125,50,0.12);
        pointer-events: none;
    }

    .auth-left::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: rgba(255,111,0,0.07);
        pointer-events: none;
    }

.al-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.al-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg,var(--green),var(--green-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.al-logo-text strong {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: block;
}

.al-logo-text span {
    font-size: 10px;
    color: #81C784;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.al-hero {
    position: relative;
    z-index: 1;
}

    .al-hero h2 {
        font-size: 26px;
        font-weight: 800;
        color: #fff;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .al-hero p {
        font-size: 13.5px;
        color: #B2DFDB;
        line-height: 1.7;
    }

.al-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.al-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.al-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(46,125,50,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #81C784;
    font-size: 14px;
    flex-shrink: 0;
}

.al-feat-text {
    font-size: 13px;
    color: #B2DFDB;
    font-weight: 500;
}

.al-footer {
    font-size: 11.5px;
    color: #4CAF50;
    position: relative;
    z-index: 1;
}

/* RIGHT PANEL */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg);
}

.auth-box {
    width: 100%;
    max-width: 460px;
}

/* ROLE TABS */
.role-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    border: 1.5px solid var(--border);
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.role-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .2s;
    text-align: center;
}

    .role-tab.active.buyer {
        background: var(--green-pale);
        color: var(--green);
    }

    .role-tab.active.seller {
        background: #FFF3E0;
        color: var(--accent);
    }

    .role-tab i {
        font-size: 15px;
    }

/* MODE TOGGLE */
.auth-mode-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
}

.mode-btn {
    flex: 1;
    padding: 9px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Outfit',sans-serif;
    transition: all .2s;
}

    .mode-btn.active {
        border-color: var(--green);
        background: var(--green-pale);
        color: var(--green);
    }

/* FORM */
.auth-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit',sans-serif;
    color: var(--text);
    outline: none;
    transition: border .2s;
    background: #fff;
}

    .form-control:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit',sans-serif;
    color: var(--text);
    outline: none;
    transition: border .2s;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236B7280' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

    .form-select:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
    }

/* PHONE */
.phone-prefix {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border .2s;
}

    .phone-prefix:focus-within {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
    }

.phone-flag {
    padding: 11px 12px;
    background: #f4f6f0;
    border-right: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

    .phone-flag span {
        font-size: 13px;
    }

.phone-prefix input {
    border: none;
    flex: 1;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Outfit',sans-serif;
    color: var(--text);
    outline: none;
    background: transparent;
}

/* OTP BOXES */
.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 6px;
}

.otp-box {
    width: 50px;
    height: 54px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    font-family: 'DM Mono',monospace;
    outline: none;
    transition: border .2s;
    background: #fff;
}

    .otp-box:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
    }

.otp-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 18px;
}

.resend-link {
    color: var(--green);
    cursor: pointer;
    font-weight: 600;
}

/* BUTTONS */
.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit',sans-serif;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

    .btn-submit:hover {
        background: var(--green-light);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(46,125,50,0.3);
    }

    .btn-submit.accent {
        background: var(--accent);
    }

        .btn-submit.accent:hover {
            background: var(--accent-light);
            box-shadow: 0 6px 20px rgba(255,111,0,0.3);
        }

/* STEPS */
.step-indicator {
    display: flex;
    align-items: flex-start;
    margin-bottom: 26px;
}

.step-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-dot-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    transition: all .3s;
}

    .step-dot-circle.done {
        background: var(--green);
        border-color: var(--green);
        color: #fff;
    }

    .step-dot-circle.active {
        background: var(--green-pale);
        border-color: var(--green);
        color: var(--green);
    }

.step-dot-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

.step-dot.active .step-dot-label, .step-dot.done .step-dot-label {
    color: var(--green);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 14px;
    transition: background .3s;
}

    .step-line.done {
        background: var(--green);
    }

/* KYC PENDING */
.kyc-pending-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid #FFE082;
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.kp-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #FFF8E1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 32px;
    color: var(--yellow);
}

.kp-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.kp-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

.kp-steps {
    background: var(--green-pale);
    border-radius: 11px;
    padding: 16px 18px;
    text-align: left;
    margin-bottom: 22px;
}

.kp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--green-mid);
}

    .kp-step:last-child {
        border-bottom: none;
    }

    .kp-step i {
        color: var(--green);
        width: 16px;
    }

    .kp-step.pending i {
        color: var(--yellow);
    }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

    .terms-check input {
        margin-top: 3px;
        accent-color: var(--green);
        cursor: pointer;
    }

    .terms-check label {
        font-size: 12.5px;
        color: var(--text-muted);
        line-height: 1.5;
        cursor: pointer;
    }

        .terms-check label a {
            color: var(--green);
            font-weight: 600;
        }

.switch-mode {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 18px;
}

    .switch-mode a {
        color: var(--green);
        font-weight: 700;
        cursor: pointer;
    }

.screen {
    display: none;
}

    .screen.active {
        display: block;
    }

.toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: var(--green);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 30px rgba(46,125,50,0.3);
}

    .toast.show {
        display: flex;
    }

    .toast.error {
        background: var(--red);
    }

    .toast.warn {
        background: var(--yellow);
    }

@media(max-width:860px) {
    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 24px 16px;
    }
}

@media(max-width:500px) {
    .otp-box {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

 
