/* ===== LOGIN2 — ObirMenu ===== */

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

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f4f2ec;
    -webkit-font-smoothing: antialiased;
}

.font-signika { font-family: "Signika", "Inter", sans-serif; }
.font-caveat  { font-family: "Caveat", cursive; }

/* ===== LAYOUT ===== */
.l2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== LEFT PANEL — sarı arka plan, orijinal login tarzı ===== */
.l2-left {
    background: #f5b934;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.l2-left-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
}

.l2-qr-area {
    text-align: right;
    margin-bottom: -20px;
}

.l2-qr-img {
    width: 60%;
    max-width: 340px;
}

.l2-caveat {
    line-height: 1;
    margin: 0;
}

.l2-caveat-1 {
    font-size: clamp(60px, 8vw, 100px);
    color: #fff;
    transform: rotate(-8deg);
    margin-top: -90px;
    text-align: left;
}

.l2-caveat-2 {
    font-size: clamp(44px, 5.5vw, 70px);
    color: #555;
    transform: rotate(-4deg);
    margin-top: -50px;
    text-align: right;
}

.l2-left-actions {
    text-align: center;
    margin-top: 28px;
}

.l2-btn-cta {
    background: #fff;
    color: #222;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 10px 26px;
    font-weight: 600;
    font-size: 0.92rem;
    margin-right: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.l2-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: #222;
}

.l2-btn-outline {
    background: transparent;
    color: #222;
    border: 2px solid #222;
    border-radius: 50px;
    padding: 10px 26px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background .2s ease, color .2s ease;
}

.l2-btn-outline:hover {
    background: #222;
    color: #fff;
}

.l2-left-links {
    text-align: center;
    margin-top: 16px;
}

.l2-left-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    margin: 0 10px;
    font-weight: 500;
    transition: color .2s;
}

.l2-left-links a:hover {
    color: #000;
    text-decoration: underline;
}

.l2-left-credit {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: 0.04em;
    font-weight: 500;
    z-index: 3;
}

.l2-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    align-items: start;
}

.l2-field-captcha {
    margin-top: 4px;
}

.l2-captcha-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.l2-captcha-img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.l2-captcha-refresh {
    border: none;
    background: #222;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .2s ease;
}

.l2-captcha-refresh:hover {
    background: #333;
}

.l2-error-block {
    display: block;
    margin-top: -6px;
    margin-bottom: 4px;
}

/* ===== RIGHT PANEL — beyaz, modern form ===== */
.l2-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #fff;
}

.l2-right-inner {
    width: 100%;
    max-width: 420px;
}

.l2-mobile-top {
    text-align: center;
    margin-bottom: 24px;
}

.l2-mobile-logo {
    width: 150px;
}

.l2-brand-area {
    margin-bottom: 36px;
    text-align: center;
}

.l2-desktop-logo {
    width: 220px;
}

.l2-form-header {
    text-align: center;
}

.l2-form-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #151515;
    margin-bottom: 6px;
}

.l2-form-header p {
    color: #888;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

/* ===== FORM ===== */
.l2-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.l2-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
}

.l2-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.l2-input-box > i:first-child {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: #b0b0b0;
    pointer-events: none;
    z-index: 1;
}

.l2-input-box input {
    width: 100%;
    border: 1.5px solid #e5e3dc;
    border-radius: 14px;
    padding: 13px 44px 13px 42px;
    font-size: 0.94rem;
    font-family: inherit;
    background: #fafaf8;
    color: #222;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    outline: none;
}

.l2-input-box input::placeholder {
    color: #c0c0c0;
}

.l2-input-box input:focus {
    border-color: #f5b934;
    box-shadow: 0 0 0 4px rgba(245,185,52,0.12);
    background: #fff;
}

.l2-input-box input.has-error {
    border-color: #e74c3c;
}

.l2-input-box input[readonly] {
    background: #f0f0ee;
    color: #555;
}

.l2-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    z-index: 1;
}

.l2-toggle-pw:hover {
    color: #666;
}

.l2-error {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: 500;
}

/* ===== OPTIONS ===== */
.l2-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.l2-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    color: #666;
    cursor: pointer;
}

.l2-remember input {
    accent-color: #f5b934;
    width: 16px;
    height: 16px;
}

.l2-forgot {
    font-size: 0.84rem;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.l2-forgot:hover {
    color: #222;
}

/* ===== SUBMIT ===== */
.l2-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    margin-top: 6px;
}

.l2-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(21,21,21,0.22);
}

.l2-submit:active {
    transform: translateY(0);
}

/* ===== DIVIDER ===== */
.l2-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.l2-divider::before,
.l2-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8e6df;
}

.l2-divider span {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ===== REGISTER BUTTON ===== */
.l2-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 1.5px solid #e5e3dc;
    border-radius: 14px;
    padding: 13px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #333;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.l2-register-btn:hover {
    border-color: #f5b934;
    background: #fffdf7;
    color: #222;
}

.l2-register-btn-secondary {
    margin-top: 10px;
    background: #fafaf8;
    color: #555;
}

.l2-register-btn-secondary:hover {
    background: #f4f2ec;
    color: #222;
}

.l2-alert-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.25);
    color: #146c43;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 20px;
}

.l2-alert-success i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== FOOTER TEXT ===== */
.l2-footer-text {
    margin-top: 22px;
    text-align: center;
    font-size: 0.76rem;
    color: #aaa;
    line-height: 1.5;
}

.l2-footer-text a {
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.l2-footer-text a:hover {
    color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .l2 {
        grid-template-columns: 1fr;
    }

    .l2-right {
        min-height: 100vh;
        background: linear-gradient(180deg, #fffdf7 0%, #f4f2ec 100%);
    }

    .l2-right-inner {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .l2-right {
        padding: 24px 16px;
    }

    .l2-form-header h2 {
        font-size: 1.45rem;
    }

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