/*
|--------------------------------------------------------------------------
| Oti / Otostore Login
|--------------------------------------------------------------------------
| Tasarım dili:
| - Açık tema
| - Otostore turuncu skalası
| - Keskin köşeler
| - Dekoratif kart / pill / badge yok
| - İşlevsel ve kompakt tipografi
|--------------------------------------------------------------------------
*/

:root {
    --oti-orange: #f36b00;
    --oti-orange-dark: #d95f00;
    --oti-orange-soft: #fff2e7;

    --oti-white: #ffffff;
    --oti-page: #f6f6f3;
    --oti-surface: #ffffff;
    --oti-line: #deded8;
    --oti-line-dark: #c8c8c0;

    --oti-text: #20201e;
    --oti-text-soft: #62625d;
    --oti-text-faint: #8b8b84;

    --oti-danger: #c6362c;
    --oti-danger-bg: #fff4f2;
    --oti-success: #2d6c3d;
    --oti-success-bg: #f0f8f2;
}

/*
|--------------------------------------------------------------------------
| Bu login ekranında yuvarlatılmış yüzey kullanılmaz.
|--------------------------------------------------------------------------
*/

.oti-login-page,
.oti-login-page *,
.oti-login-page *::before,
.oti-login-page *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.oti-guest-body {
    min-height: 100vh;
    margin: 0;
    color: var(--oti-text);
    background: var(--oti-page);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.oti-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(420px, 58%);
}

/*
|--------------------------------------------------------------------------
| Sol alan
|--------------------------------------------------------------------------
*/

.oti-login-brand {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 44px 52px 34px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(243, 107, 0, .06) 0, transparent 45%),
        #efefe9;
    border-right: 1px solid var(--oti-line);
}

.oti-login-brand::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: var(--oti-orange);
}

.oti-login-brand__top {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.oti-login-brand__main-logo {
    display: block;
    width: 190px;
    max-width: 42%;
    height: auto;
}

.oti-login-brand__divider {
    width: 1px;
    height: 46px;
    background: var(--oti-line-dark);
}

.oti-login-brand__partner-logo {
    display: block;
    width: 190px;
    max-width: 42%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}

.oti-login-brand__content {
    width: min(100%, 610px);
    margin: auto 0;
    padding: 70px 0;
}

.oti-login-brand__content h1 {
    max-width: 560px;
    margin: 0;
    color: var(--oti-text);
    font-size: clamp(32px, 3.3vw, 51px);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 600;
}

.oti-login-brand__content p {
    max-width: 520px;
    margin: 22px 0 0;
    color: var(--oti-text-soft);
    font-size: 15px;
    line-height: 1.75;
}

.oti-login-brand__lines {
    width: 170px;
    margin-top: 36px;
}

.oti-login-brand__lines span {
    display: block;
    height: 2px;
    margin-top: 7px;
}

.oti-login-brand__lines span:nth-child(1) {
    width: 100%;
    background: var(--oti-orange);
}

.oti-login-brand__lines span:nth-child(2) {
    width: 65%;
    background: #f9a45f;
}

.oti-login-brand__lines span:nth-child(3) {
    width: 35%;
    background: #f5c49d;
}

.oti-login-brand__footer {
    color: var(--oti-text-faint);
    font-size: 11px;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| Sağ / form
|--------------------------------------------------------------------------
*/

.oti-login-form-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 54px clamp(44px, 8vw, 130px);
    background: var(--oti-white);
}

.oti-login-form-wrap {
    width: 100%;
    max-width: 460px;
}

.oti-login-header {
    margin-bottom: 34px;
}

.oti-login-header::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-bottom: 22px;
    background: var(--oti-orange);
}

.oti-login-header h2 {
    margin: 0;
    color: var(--oti-text);
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -.03em;
    font-weight: 600;
}

.oti-login-header p {
    margin: 10px 0 0;
    color: var(--oti-text-soft);
    font-size: 13px;
    line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Uyarılar
|--------------------------------------------------------------------------
*/

.oti-login-notice {
    margin: 0 0 22px;
    padding: 13px 14px;
    border-left: 3px solid;
    font-size: 12px;
    line-height: 1.6;
}

.oti-login-notice--success {
    color: var(--oti-success);
    border-color: var(--oti-success);
    background: var(--oti-success-bg);
}

.oti-login-notice--error {
    color: var(--oti-danger);
    border-color: var(--oti-danger);
    background: var(--oti-danger-bg);
}

.oti-login-notice--error > div + div {
    margin-top: 4px;
}

/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.oti-form-group {
    margin-bottom: 20px;
}

.oti-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #383834;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.oti-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oti-input-wrap {
    position: relative;
}

.oti-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #92928b;
    pointer-events: none;
}

.oti-input-icon svg {
    width: 18px;
    height: 18px;
}

.oti-input-wrap input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 70px 0 45px;
    outline: 0;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 1px solid var(--oti-line-dark);
    color: var(--oti-text);
    background: var(--oti-white);
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.oti-input-wrap input::-moz-placeholder {
    color: #aaa9a2;
}

.oti-input-wrap input:-ms-input-placeholder {
    color: #aaa9a2;
}

.oti-input-wrap input::placeholder {
    color: #aaa9a2;
}

.oti-input-wrap input:hover {
    border-color: #aaa9a1;
}

.oti-input-wrap input:focus {
    border-color: var(--oti-orange);
    box-shadow: inset 3px 0 0 var(--oti-orange);
    background: #fffdfa;
}

.oti-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 50px;
    min-width: 64px;
    padding: 0 13px;
    border: 0;
    border-left: 1px solid var(--oti-line);
    cursor: pointer;
    color: var(--oti-text-soft);
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
}

.oti-password-toggle:hover,
.oti-password-toggle:focus-visible {
    color: var(--oti-orange-dark);
    background: var(--oti-orange-soft);
    outline: 0;
}

/*
|--------------------------------------------------------------------------
| Kalıcı oturum bilgisi
|--------------------------------------------------------------------------
*/

.oti-device-session {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin: 5px 0 24px;
    padding: 13px 0;
    border-top: 1px solid var(--oti-line);
    border-bottom: 1px solid var(--oti-line);
}

.oti-device-session__check {
    color: var(--oti-orange);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.oti-device-session strong {
    display: block;
    color: #42423e;
    font-size: 11px;
    font-weight: 600;
}

.oti-device-session p {
    margin: 4px 0 0;
    color: var(--oti-text-faint);
    font-size: 10px;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Submit
|--------------------------------------------------------------------------
*/

.oti-login-submit {
    position: relative;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--oti-orange);
    cursor: pointer;
    color: var(--oti-white);
    background: var(--oti-orange);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition:
        background .16s ease,
        border-color .16s ease,
        opacity .16s ease;
}

.oti-login-submit:hover {
    border-color: var(--oti-orange-dark);
    background: var(--oti-orange-dark);
}

.oti-login-submit:focus-visible {
    outline: 2px solid #ffb978;
    outline-offset: 2px;
}

.oti-login-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.oti-login-submit__loading {
    display: none;
}

.oti-login-submit.is-loading .oti-login-submit__text {
    display: none;
}

.oti-login-submit.is-loading .oti-login-submit__loading {
    display: inline;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.oti-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #999991;
    font-size: 10px;
}

.oti-login-security span {
    width: 14px;
    height: 14px;
}

.oti-login-security svg {
    width: 14px;
    height: 14px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .oti-login-page {
        grid-template-columns: 1fr;
    }

    .oti-login-brand {
        min-height: auto;
        padding: 28px 30px 26px;
        border-right: 0;
        border-bottom: 1px solid var(--oti-line);
    }

    .oti-login-brand::before {
        width: 100%;
        height: 4px;
    }

    .oti-login-brand__content {
        display: none;
    }

    .oti-login-brand__footer {
        display: none;
    }

    .oti-login-form-area {
        min-height: auto;
        padding: 54px 30px 70px;
    }
}

@media (max-width: 580px) {
    .oti-login-brand {
        padding: 24px 20px 20px;
    }

    .oti-login-brand__top {
        gap: 15px;
        min-height: 54px;
    }

    .oti-login-brand__main-logo,
    .oti-login-brand__partner-logo {
        width: 145px;
        max-width: 43%;
    }

    .oti-login-brand__divider {
        height: 36px;
    }

    .oti-login-form-area {
        padding: 42px 20px 56px;
    }

    .oti-login-header {
        margin-bottom: 28px;
    }

    .oti-login-header h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oti-input-wrap input,
    .oti-login-submit {
        transition: none;
    }
}

