/* MelsPos — kirish va ro'yxatdan o'tish sahifalari */
:root {
    --mp-purple: #5b2bd9;
    --mp-purple-dark: #2a0f6e;
    --mp-green: #1fa83a;
    --mp-green-dark: #128a2c;
    --mp-text: #14111f;
    --mp-muted: #6b6880;
    --mp-border: #dcd8ea;
    --mp-input: #f5f4fa;
}

* { box-sizing: border-box; }

body.mp-auth {
    margin: 0;
    min-height: 100vh;
    font-family: 'Lexend', 'Inter', -apple-system, sans-serif;
    color: var(--mp-text);
    background:
        radial-gradient(ellipse 60% 45% at 100% 0%, rgba(120, 220, 90, .35), transparent 60%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(120, 220, 90, .30), transparent 60%),
        radial-gradient(ellipse 70% 60% at 85% 10%, rgba(150, 110, 255, .25), transparent 65%),
        radial-gradient(ellipse 70% 60% at 10% 90%, rgba(150, 110, 255, .20), transparent 65%),
        #f3f1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.mp-card {
    width: 100%;
    max-width: 1400px;
    min-height: 720px;
    display: grid;
    grid-template-columns: 45% 55%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(60, 30, 140, .18), 0 2px 8px rgba(60, 30, 140, .06);
}

/* ---------- chap: forma ---------- */
.mp-form-side {
    position: relative;
    padding: 48px 72px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.mp-lang {
    position: absolute;
    top: 24px;
    right: 32px;
    display: flex;
    gap: 4px;
}
.mp-lang a {
    font-size: 12px;
    font-weight: 500;
    color: var(--mp-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
}
.mp-lang a.active { color: var(--mp-purple); background: #efeafd; }

.mp-logo img { height: 92px; width: auto; display: block; margin-bottom: 36px; }

.mp-title { font-size: 34px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.3px; }
.mp-subtitle { font-size: 16px; color: var(--mp-muted); margin: 0 0 28px; }

.mp-field { margin-bottom: 18px; }
.mp-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}
.mp-label i { color: #3a3550; width: 16px; text-align: center; }

.mp-input-wrap { position: relative; }
.mp-input-wrap > i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #57536b;
    font-size: 17px;
    pointer-events: none;
}
.mp-input {
    width: 100%;
    height: 54px;
    border: 1.5px solid var(--mp-border);
    border-radius: 14px;
    background: var(--mp-input);
    padding: 0 52px 0 56px;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    color: var(--mp-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.mp-input::placeholder { color: #a9a5bb; font-weight: 400; }
.mp-input:focus { border-color: var(--mp-purple); background: #fff; box-shadow: 0 0 0 4px rgba(91, 43, 217, .12); }
.mp-input.is-invalid { border-color: #dc3545; }

.mp-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: #57536b;
    font-size: 17px;
    padding: 8px;
    cursor: pointer;
}

.mp-error { display: none; color: #dc3545; font-size: 13px; margin-top: 6px; }
.mp-input-wrap:has(.mp-input.is-invalid) + .mp-error { display: block; }

.mp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 26px;
    font-size: 15px;
}
.mp-check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.mp-check input { width: 22px; height: 22px; accent-color: var(--mp-green); cursor: pointer; }
.mp-link { color: var(--mp-purple); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.mp-link:hover { color: var(--mp-purple-dark); }

.mp-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #22b33f 0%, var(--mp-green-dark) 100%);
    color: #fff;
    font: inherit;
    font-size: 19px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 168, 58, .28);
    transition: transform .1s, box-shadow .15s, filter .15s;
}
.mp-btn:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(31, 168, 58, .35); }
.mp-btn:active { transform: translateY(1px); }

.mp-footer { text-align: center; margin-top: 24px; font-size: 15px; color: var(--mp-muted); }
.mp-footer i { margin-right: 6px; color: #3a3550; }

.mp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- o'ng: reklama paneli ---------- */
.mp-hero-side {
    position: relative;
    color: #fff;
    padding: 80px 64px;
    background:
        linear-gradient(90deg, rgba(42, 15, 110, .92) 0%, rgba(55, 22, 140, .55) 38%, rgba(55, 22, 140, 0) 60%),
        url('../images/auth/pos-hero.webp') right bottom / cover no-repeat,
        #3a1597;
}
.mp-hero-title { font-size: 38px; font-weight: 600; line-height: 1.25; margin: 0 0 20px; max-width: 560px; }
.mp-hero-bar { width: 100px; height: 5px; border-radius: 3px; background: #4ade4a; margin-bottom: 44px; }
.mp-hero-list { list-style: none; padding: 0; margin: 0; }
.mp-hero-list li { display: flex; align-items: center; gap: 22px; font-size: 18px; font-weight: 400; margin-bottom: 26px; }
.mp-hero-list i { width: 26px; text-align: center; font-size: 22px; opacity: .95; }

/* ---------- moslashuv ---------- */
@media (max-width: 1200px) {
    .mp-form-side { padding: 48px 44px 36px; }
    .mp-hero-side { padding: 64px 44px; }
    .mp-hero-title { font-size: 32px; }
}
@media (max-width: 960px) {
    .mp-card { grid-template-columns: 1fr; max-width: 560px; min-height: 0; }
    .mp-hero-side { display: none; }
}
@media (max-width: 520px) {
    body.mp-auth { padding: 16px; }
    .mp-card { border-radius: 24px; }
    .mp-form-side { padding: 56px 20px 28px; }
    .mp-logo img { height: 64px; margin-bottom: 24px; }
    .mp-title { font-size: 26px; }
    .mp-grid-2 { grid-template-columns: 1fr; }
    .mp-row { flex-wrap: wrap; gap: 12px; }
}
