﻿/* =============================================
   Lokbazar — Registration Page Stylesheet
   Matches Login Page Design Language
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    background: #f4f6f4;
}

/* ── Page Layout ── */
.reg-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ── Left Brand Panel ── */
.brand-panel {
    background: #0a5c4a;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 32px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

    .brand-panel::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .brand-panel::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
    }

.brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-logo img {
    /*width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);*/
    width: 125px;
    height: 130px;
    object-fit: contain;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    padding: 7px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.brand-name {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.8;
}

.dot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
    opacity: 0.18;
}

    .dot-grid span {
        display: block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ffffff;
    }

/* ── Right Form Panel ── */
.form-panel {
    background: #ffffff;
    padding: 60px 64px;
    overflow-y: auto;
}

.form-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* ── Form Header ── */
.form-header {
    margin-bottom: 32px;
}

.welcome-text {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ── Messages ── */
.msg-success {
    display: block;
    color: #0a5c4a;
    font-size: 13px;
    margin-bottom: 12px;
}

.msg-error {
    display: block;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ── Section Title ── */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0a5c4a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e8f5f1;
}

.section-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e8f5f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a5c4a;
    font-size: 12px;
}

/* ── Fields Grid ── */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

/* ── Field Groups ── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.input-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-icon {
    position: absolute;
    top: 11px;
    left: 13px;
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.field-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #1a1a1a;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .field-input:focus {
        border-color: #0a5c4a;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(10, 92, 74, 0.1);
    }

    .field-input:read-only {
        background: #f0f0f0;
        color: #888;
        cursor: not-allowed;
    }

    .field-input::placeholder {
        color: #bbb;
    }

.field-error {
    display: block;
    color: #c0392b;
    font-size: 11px;
    margin-top: 4px;
    padding-left: 2px;
}

/* ── Radio Group ── */
.radio-group {
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.radio-list {
    display: flex;
    gap: 32px;
}

    .radio-list td {
        padding-right: 20px;
    }

    .radio-list input[type="radio"] {
        accent-color: #0a5c4a;
        width: 15px;
        height: 15px;
        margin-right: 6px;
        cursor: pointer;
    }

    .radio-list label {
        font-size: 13px;
        color: #444;
        cursor: pointer;
    }

/* ── Terms Row ── */
.terms-row {
    margin: 28px 0 24px;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.terms-check {
    accent-color: #0a5c4a;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.terms-link {
    color: #0a5c4a;
    font-weight: 500;
    text-decoration: none;
}

    .terms-link:hover {
        text-decoration: underline;
    }

/* ── Register Button ── */
.btn-register {
    width: 100%;
    padding: 13px;
    background: #0a5c4a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .btn-register:hover {
        background: #084f3f;
    }

    .btn-register:active {
        transform: scale(0.99);
    }

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #ccc;
    font-size: 12px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-top: 1px solid #ececec;
    }

/* ── Sign In Link ── */
.signin-text {
    text-align: center;
    font-size: 13px;
    color: #888;
    padding-bottom: 40px;
}

.signin-link {
    color: #0a5c4a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

    .signin-link:hover {
        color: #084f3f;
        text-decoration: underline;
    }

/* ── Loader / Modal ── */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(10, 92, 74, 0.2);
    border-top-color: #0a5c4a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modalBackground {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .reg-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        position: relative;
        height: auto;
        min-height: 200px;
        padding: 36px 24px;
    }

    .brand-inner {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .brand-logo img {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 20px;
    }

    .dot-grid {
        display: none;
    }

    .form-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .fields-grid {
        grid-template-columns: 1fr;
    }

    .brand-inner {
        flex-direction: column;
        text-align: center;
    }
}
