:root {
    --semak-koyu: #016F51;
    --semak-acik: #73C366;
    --semak-ink: #016F51;
    --semak-muted: rgb(9 161 121 / 0.13);
    --semak-line: #d8e2ed;
}

* {
    box-sizing: border-box;
}

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

body.semak-login-page {
    margin: 0;
    color: var(--semak-ink);
    background: #fff;
    font-family: "Poppins", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 57%) minmax(480px, 43%);
    min-height: 100vh;
    overflow: hidden;
}

.login-visual {
    position: relative;
    min-height: 20vh;
    overflow: hidden;
    background: url("../images/semak_leaf.png") 51% center / cover no-repeat;
    isolation: isolate;
}

.login-visual::after {
    position: absolute;
    z-index: 3;
    top: -15%;
    right: -110px;
    width: 220px;
    height: 130%;
    content: "";
    background: #fff;
    transform: skewX(-10deg);
}

.login-visual__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 55, 40, .85) 0%,
        rgba(1, 111, 81, .48) 38%,
        rgba(1, 111, 81, .03) 73%
    ),
    linear-gradient(
        0deg,
        rgba(0, 48, 35, .92) 0%,
        rgba(1, 111, 81, .22) 38%,
        transparent 66%
    );
}

.login-visual__line {
    position: absolute;
    z-index: 4;
    top: -8%;
    right: 51px;
    width: 10px;
    height: 116%;
    background: var(--semak-koyu);
    transform: skewX(-10deg);
    box-shadow: 19px 0 0 rgba(20, 117, 223, .13);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: clamp(38px, 4vw, 76px);
    bottom: clamp(36px, 5vh, 68px);
    width: min(610px, 72%);
    color: #fff;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(42px, 4.4vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.hero-rule {
    display: block;
    width: 58px;
    height: 4px;
    margin: 25px 0 22px;
    background: #fff;
}

.hero-lead {
    margin: 0 0 14px;
    font-size: clamp(20px, 1.8vw, 29px);
    font-weight: 600;
    line-height: 1.35;
}

.hero-text {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.55;
}

.hero-features {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    margin-top: clamp(26px, 4vh, 44px);
}

.hero-feature {
    display: flex;
    min-width: 120px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.hero-feature + .hero-feature {
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, .35);
}

.hero-feature__icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border: 2px solid #078866;
    border-radius: 50%;
    background: rgba(5, 41, 79, .42);
}

.hero-feature__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #dfeeff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    color: rgba(255, 255, 255, .52);
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.hero-signature span {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, .52);
}

.login-panel {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 38px clamp(48px, 5.5vw, 96px);
    background: #fff;
}

.login-panel__inner {
    width: min(100%, 470px);
    margin-inline: auto;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: clamp(48px, 7vh, 82px);
    text-align: center;
}

.login-logo {
    display: block;
    width: 150px;
    height: auto;
}

.brand-tagline {
    margin-top: 11px;
    color: #5f7691;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .33em;
    text-transform: uppercase;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h1 {
    margin: 0;
    color: var(--semak-koyu);
    font-size: clamp(30px, 2.4vw, 39px);
    font-weight: 700;
    line-height: 1.2;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.input-shell {
    position: relative;
    width: 100%;
}

.input-shell > svg {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 20px;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #7d91a9;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-form .form-control {
    width: 100%;
    min-height: 56px;
    padding: 15px 54px 15px 58px;
    border: 1px solid var(--semak-line);
    border-radius: 6px;
    color: var(--semak-ink);
    background: #fff;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-form .form-control::placeholder {
    color: #99a7b7;
}

.login-form .form-control:focus {
    border-color: var(--semak-acik);
    box-shadow: 0 0 0 3px rgba(20, 117, 223, .11);
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    color: #7d91a9;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle:hover, .password-toggle:focus {
    color: var(--semak-acik);
    outline: 0;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 26px;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--semak-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.remember-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--semak-acik);
}

.forgot-password-link {
    color: #016f51;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: var(--semak-koyu);
    text-decoration: underline;
}

.login-btn {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--semak-koyu);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 9px 22px rgba(8, 47, 89, .16);
    transition: background .18s ease, transform .18s ease;
}

.login-btn:hover, .login-btn:focus {
    color: #fff;
    background: #016f51;
    transform: translateY(-1px);
}

.login-btn span:last-child {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.dealer-action {
    margin-top: 25px;
    text-align: center;
}

.dealer-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 23px;
    color: #8796a8;
    font-size: 12px;
}

.dealer-divider::before, .dealer-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--semak-line);
}

.dealer-link {
    width: 100%;
    min-height: 56px;
    padding: 12px 20px;
    border: 1.5px solid var(--semak-acik);
    border-radius: 6px;
    color: #016F51;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.dealer-link:hover {
    color: #fff;
    background: var(--semak-acik);
}

.dealer-modal {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.dealer-modal .modal-header {
    align-items: center;
    border-bottom-color: var(--semak-line);
}

.modal-eyebrow {
    color: var(--semak-acik);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dealer-modal .modal-title {
    color: var(--semak-koyu);
    font-weight: 700;
}

.dealer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.dealer-grid__full {
    grid-column: 1 / -1;
}

.sales-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.dealer-modal label {
    margin-bottom: 8px;
    color: var(--semak-ink);
    font-size: 13px;
    font-weight: 600;
}

.dealer-modal .form-control {
    border-color: var(--semak-line);
    border-radius: 7px;
}

.dealer-modal .form-control:focus {
    border-color: var(--semak-acik);
    box-shadow: 0 0 0 3px rgba(20, 117, 223, .1);
}

.dealer-modal .btn-primary {
    border-color: var(--semak-koyu);
    background: var(--semak-koyu);
}

/* Bayi / servis başvuru formu */
#dealerAppModal .modal-dialog {
    max-width: 800px;
}

.dealer-field-label {
    width: auto;
    margin-bottom: 8px;
    color: var(--semak-ink);
    font-size: 13px;
    font-weight: 600;
}

.dealer-business-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, .75fr);
    gap: 20px;
}

.dealer-modal .form-check-label {
    font-weight: 400;
}

.dealer-modal input[type="file"] {
    height: auto;
    padding: 4px 10px;
    font-size: 12px;
}

.dealer-modal textarea {
    min-height: 56px;
}

.dealer-modal input[type="checkbox"], .dealer-modal input[type="radio"] {
    accent-color: var(--semak-acik);
}

@media (max-width: 575.98px) {
    .dealer-grid, .dealer-business-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dealer-modal .modal-eyebrow {
        display: block;
        padding-right: 12px;
        font-size: 9px;
    }

    .dealer-modal .sales-options {
        gap: 10px 20px;
    }
}


@media (max-width: 1199.98px) {
    .login-shell {
        grid-template-columns: minmax(0, 54%) minmax(450px, 46%);
    }

    .hero-copy {
        width: 76%;
    }

    .hero-features {
        gap: 18px;
    }

    .hero-feature {
        min-width: auto;
        gap: 8px;
        font-size: 11px;
    }

    .hero-feature + .hero-feature {
        padding-left: 18px;
    }

    .hero-feature__icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .login-panel {
        padding-inline: 50px;
    }
}

@media (max-width: 899.98px) {
    .login-shell {
        display: block;
        min-height: 100vh;
        overflow: visible;
    }

    .login-visual {
        min-height: 270px;
        height: 34vh;
        max-height: 370px;
        background-position: 52% 42%;
    }

    .login-visual::after {
        top: auto;
        right: -5%;
        bottom: -38px;
        width: 110%;
        height: 75px;
        transform: skewY(-3deg);
    }

    .login-visual__line {
        top: auto;
        right: -5%;
        bottom: 24px;
        width: 110%;
        height: 7px;
        transform: skewY(-3deg);
        box-shadow: 0 13px 0 rgba(20, 117, 223, .13);
    }

    .hero-copy {
        left: 28px;
        bottom: 30px;
        width: 70%;
    }

    .hero-copy h2 {
        font-size: 40px;
    }

    .hero-rule {
        width: 42px;
        height: 3px;
        margin: 13px 0;
    }

    .hero-lead {
        margin: 0;
        font-size: 18px;
    }

    .hero-text, .hero-features, .hero-signature {
        display: none;
    }

    .login-panel {
        min-height: auto;
        padding: 64px 24px 34px;
    }

    .login-panel__inner {
        max-width: 470px;
    }

    .brand-wrapper {
        margin-bottom: 40px;
    }

    .login-logo {
        width: 128px;
    }

    .login-footer {
        margin-top: 48px;
    }
}

@media (max-width: 575.98px) {
    .login-visual {
        min-height: 210px;
        height: 27vh;
    }

    .hero-copy {
        left: 22px;
        bottom: 25px;
    }

    .hero-copy h2 {
        font-size: 34px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .login-panel {
        padding: 58px 20px 28px;
    }

    .brand-wrapper {
        margin-bottom: 34px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: .23em;
    }

    .login-heading h1 {
        font-size: 29px;
    }

    .dealer-grid {
        display: block;
    }

    .dealer-modal .modal-body {
        padding: 18px;
    }

    .login-footer {
        gap: 8px;
        font-size: 8px;
        letter-spacing: .13em;
        white-space: normal;
    }

    .login-footer span {
        width: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(48px, 8vh, 88px);
    color: #016f51;
    font-size: 9px;
    letter-spacing: .25em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-footer span {
    width: 48px;
    height: 1px;
    background: #016f51;
}
