﻿/* =============================================
   Lokbazar — Login Page Stylesheet (Redesigned)
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    background: #f4f6f4;
}

/* ── Page Layout ── */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ── Left Brand Panel ── */
.brand-panel {
    background: #0a5c4a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

    .brand-panel::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 280px;
        height: 280px;
        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: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-logo img {
    /*width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);*/
    width: 180px;
    height: 185px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 7px;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.brand-name {
    color: #ffffff;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-tagline {
    /*color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.8;*/
    color: rgba(255, 255, 255, 0.65);
    font-size: 19px;
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

.form-inner {
    width: 100%;
    max-width: 380px;
}

/* ── Form Header ── */
.form-header {
    margin-bottom: 36px;
}

.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;
}

/* ── Field Groups ── */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.field-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

    .field-input:focus {
        border-color: #0a5c4a;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(10, 92, 74, 0.1);
    }

    .field-input::placeholder {
        color: #bbb;
    }

.field-error {
    display: block;
    color: #c0392b;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 4px;
}

/* ── Options Row ── */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.remember-check {
    accent-color: #0a5c4a;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: #0a5c4a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

    .forgot-link:hover {
        color: #084f3f;
        text-decoration: underline;
    }

/* ── Login Button ── */
.btn-login {
    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;
}

    .btn-login:hover {
        background: #084f3f;
    }

    .btn-login: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;
    }

/* ── Register Link ── */
.register-text {
    text-align: center;
    font-size: 13px;
    color: #888;
}

.register-link {
    color: #0a5c4a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

    .register-link:hover {
        color: #084f3f;
        text-decoration: underline;
    }

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .brand-panel {
        padding: 40px 24px;
        min-height: 220px;
    }

    .brand-inner {
        flex-direction: row;
        gap: 16px;
        text-align: left;
    }

    .brand-logo img {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 20px;
    }

    .dot-grid {
        display: none;
    }

    .form-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 400px) {
    .brand-inner {
        flex-direction: column;
        text-align: center;
    }
}
