:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", Arial, sans-serif;

    /* intl-tel-input koyu tema değişkenleri */
    --iti-border-color: rgba(148, 163, 184, 0.24);
    --iti-country-selector-bg: #0f1a2c;
    --iti-icon-color: #7ddfff;
    --iti-hover-color: rgba(34, 201, 255, 0.12);
    --iti-strict-reject-flash-color: rgba(255, 93, 115, 0.18);
    --iti-flag-width: 20px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0;
    background:
        radial-gradient(circle at 20% 20%, #123a70 0, transparent 35%),
        radial-gradient(circle at 80% 80%, #075d6c 0, transparent 35%),
        #060b14;
    color: #f5f7fb;
}


.auth-site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    min-height: 104px;
    padding: 24px clamp(24px, 4vw, 64px);
}

.auth-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        filter 160ms ease;
}

.auth-site-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.auth-site-brand:focus-visible {
    outline: 2px solid #22c9ff;
    outline-offset: 7px;
    border-radius: 10px;
}

.auth-site-brand__mark {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 14px rgba(31, 128, 255, 0.32))
        drop-shadow(0 0 16px rgba(121, 54, 255, 0.22));
}

.auth-site-brand__identity {
    display: grid;
    gap: 6px;
}

.auth-site-brand__word {
    display: inline-flex;
    align-items: center;
    color: #f7f9ff;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
}

.auth-site-brand__word span {
    display: inline-block;
    margin-inline: 1px 2px;
    transform: scale(1.08);
    color: #22c9ff;
    text-shadow:
        0 0 18px rgba(34, 201, 255, 0.48);
}

.auth-site-brand__tagline {
    color: #718198;
    font-size: 12px;
    letter-spacing: 0.7px;
}

.auth-site-main {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 18px 24px 42px;
}


.auth-card {
    width: min(100%, 460px);
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background: rgba(10, 18, 32, 0.90);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.auth-card--wide {
    width: min(100%, 720px);
}

.auth-brand {
    margin-bottom: 30px;
    text-align: center;
}

.auth-brand__name {
    margin: 0;
    font-size: 36px;
    font-weight: 750;
    letter-spacing: 8px;
}

.auth-brand__name span {
    color: #22c9ff;
    text-shadow: 0 0 24px rgba(34, 201, 255, 0.65);
}

.auth-brand__description {
    margin: 10px 0 0;
    color: #91a0b8;
    font-size: 14px;
    line-height: 1.6;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.auth-field {
    position: relative;
    margin-bottom: 18px;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    color: #ced7e6;
    font-size: 14px;
    font-weight: 600;
}

.auth-input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 14px;
    outline: none;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.auth-input:focus {
    border-color: #22c9ff;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 0 0 4px rgba(34, 201, 255, 0.11);
}

.auth-input::placeholder {
    color: #64748b;
    opacity: 1;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc;
    caret-color: #f8fafc;
    box-shadow: 0 0 0 1000px #0f172a inset;
    border-color: rgba(148, 163, 184, 0.25);
    transition: background-color 9999s ease-out 0s;
}

.auth-password {
    position: relative;
}

.auth-password .auth-input {
    padding-right: 58px;
}

/* Edge'in kendi parola gözünü kapatır. */
.auth-password .auth-input::-ms-reveal,
.auth-password .auth-input::-ms-clear {
    display: none;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.auth-password__toggle:hover {
    border-color: rgba(34, 201, 255, 0.18);
    background: rgba(34, 201, 255, 0.10);
    color: #c7f3ff;
}

.auth-password__toggle:focus-visible {
    outline: 2px solid #22c9ff;
    outline-offset: 1px;
}

.auth-password__toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password__toggle svg[hidden] {
    display: none;
}

.auth-password__toggle .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 22px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b9c4d6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #22c9ff;
}

.auth-link {
    display: inline-block;
    color: #7ddfff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.auth-link:hover {
    color: #baf2ff;
    text-decoration: underline;
}

.auth-link:focus-visible {
    outline: 2px solid #22c9ff;
    outline-offset: 3px;
    border-radius: 4px;
}

.auth-button {
    display: inline-grid;
    place-items: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1479ff, #13c9dc);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 150ms ease,
        filter 150ms ease,
        box-shadow 150ms ease;
}

.auth-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(19, 201, 220, 0.18);
}

.auth-button:focus-visible {
    outline: 2px solid #7ddfff;
    outline-offset: 3px;
}

.auth-button--secondary {
    margin-top: 12px;
    border: 1px solid rgba(125, 223, 255, 0.28);
    background: rgba(34, 201, 255, 0.07);
    color: #baf2ff;
}

.auth-summary {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 138, 138, 0.24);
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.18);
    color: #ffb1b1;
    font-size: 14px;
}

.auth-summary:empty {
    display: none;
}

.auth-summary ul {
    margin: 0;
    padding-left: 20px;
}

.auth-validation {
    display: block;
    min-height: 17px;
    margin-top: 7px;
    color: #ff9c9c;
    font-size: 13px;
}

.auth-validation:empty {
    min-height: 0;
    margin-top: 0;
}

.auth-help {
    margin: -5px 0 19px;
    color: #75869f;
    font-size: 12px;
    line-height: 1.5;
}

.auth-footer {
    margin: 22px 0 0;
    text-align: center;
    color: #7d8ca4;
    font-size: 13px;
    line-height: 1.6;
}

.auth-message {
    text-align: center;
}

.auth-message__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border: 1px solid rgba(34, 201, 255, 0.25);
    border-radius: 50%;
    background: rgba(34, 201, 255, 0.09);
    color: #66e2ff;
    font-size: 34px;
}

.auth-message__title {
    margin: 0 0 12px;
    font-size: 25px;
}

.auth-message__text {
    margin: 0 0 24px;
    color: #9aa9bf;
    line-height: 1.7;
}

/* =========================================================
   INTL-TEL-INPUT — YOXION KOYU TEMA
   ========================================================= */

.iti {
    position: relative;
    z-index: 20;
    width: 100%;
    color: #e8eef8;
}

.iti:has(.iti__dropdown-content:not([hidden])) {
    z-index: 1000;
}

.iti .auth-input {
    width: 100%;
    padding-left: 118px !important;
}

/* Bayrak düğmesi */
.iti__country-container {
    z-index: 3;
}

.iti__selected-country {
    height: 100%;
    padding: 0 12px !important;
    border-radius: 11px 0 0 11px;
    background: #0f1a2c !important;
}

.iti__selected-country:hover,
.iti__selected-country:focus {
    background: rgba(34, 201, 255, 0.10) !important;
}

.iti__selected-country-primary {
    gap: 7px;
}

.iti__selected-dial-code {
    color: #dce7f7 !important;
    font-weight: 700;
}

.iti__arrow {
    border-top-color: #7ddfff !important;
}

.iti__arrow--up {
    border-bottom-color: #7ddfff !important;
}

/* Açılır menü: bütün form elemanlarının üstünde kalır. */
.iti__dropdown-content {
    z-index: 99999 !important;
    overflow: hidden !important;
    min-width: 100% !important;
    max-width: min(440px, calc(100vw - 32px)) !important;
    border: 1px solid rgba(34, 201, 255, 0.34) !important;
    border-radius: 13px !important;
    background: #0b1424 !important;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.66) !important;
    color: #e8eef8 !important;
}

/* Beyaz kalan arama başlığını tamamen koyulaştırır. */
.iti__search-input-container {
    position: relative !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(34, 201, 255, 0.18) !important;
    background: #0b1424 !important;
    color: #f8fafc !important;
}

.iti__search-input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 14px 0 42px !important;
    border: 1px solid rgba(148, 163, 184, 0.30) !important;
    border-radius: 10px !important;
    background: #101b2e !important;
    color: #f8fafc !important;
    font-family: inherit !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.iti__search-input:focus {
    border-color: #22c9ff !important;
    box-shadow: 0 0 0 4px rgba(34, 201, 255, 0.11) !important;
}

.iti__search-input::placeholder {
    color: #718198 !important;
    opacity: 1;
}

.iti__search-icon {
    position: absolute !important;
    top: 50% !important;
    left: 24px !important;
    z-index: 2 !important;
    transform: translateY(-50%) !important;
    color: #7ddfff !important;
    pointer-events: none !important;
}

.iti__search-icon-svg,
.iti__search-icon-svg path {
    fill: none !important;
    stroke: #7ddfff !important;
}

/* Ülke listesi */
.iti__country-list {
    position: relative !important;
    z-index: 1 !important;
    max-height: 260px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: #0b1424 !important;
    color: #e8eef8 !important;
    scrollbar-color: #506078 #0b1424;
    scrollbar-width: thin;
}

.iti__country {
    min-height: 46px;
    padding: 10px 12px !important;
    border: 0 !important;
    background: #0b1424 !important;
    color: #dbe6f5 !important;
}

.iti__country:hover,
.iti__country.iti__highlight,
.iti__country[aria-selected="true"] {
    background: #102e43 !important;
}

.iti__country-name {
    color: #e5edf8 !important;
    font-weight: 600;
}

.iti__dial-code {
    color: #7ddfff !important;
}

.iti__country[aria-selected="true"] .iti__country-name {
    color: #ffffff !important;
}

.iti__country[aria-selected="true"] .iti__dial-code {
    color: #66e2ff !important;
}

.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #0b1424;
}

.iti__country-list::-webkit-scrollbar-thumb {
    border: 2px solid #0b1424;
    border-radius: 20px;
    background: #506078;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: #22a9cf;
}

/* Mobilde body altına taşınan menü de koyu kalır. */
.iti--container {
    z-index: 99999 !important;
    color: #e8eef8 !important;
}

.iti--container .iti__dropdown-content,
.iti--container .iti__search-input-container,
.iti--container .iti__country-list {
    background: #0b1424 !important;
}

/* Menü açıkken alttaki giriş bağlantılarının üste çıkmasını önler. */
.iti__dropdown-content .auth-link,
.iti__dropdown-content ~ .auth-link {
    z-index: auto !important;
}

@media (max-width: 720px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-field--full {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .auth-site-header {
        min-height: 86px;
        justify-content: center;
        padding: 18px 20px 8px;
    }

    .auth-site-brand {
        gap: 11px;
    }

    .auth-site-brand__mark {
        width: 44px;
        height: 44px;
    }

    .auth-site-brand__word {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .auth-site-brand__tagline {
        display: none;
    }

    .auth-site-main {
        padding: 16px 16px 34px;
    }

}

@media (max-width: 520px) {
    body.auth-page {
        padding: 0;
    }

    .auth-card {
        padding: 30px 24px;
        border-radius: 18px;
    }

    .auth-brand__name {
        font-size: 31px;
        letter-spacing: 6px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .iti .auth-input {
        padding-left: 112px !important;
    }

    .iti__dropdown-content {
        max-width: calc(100vw - 32px) !important;
    }
}

/* Insurance CRM premium authentication extensions */
.auth-card--premium{box-shadow:0 30px 90px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.06)}
.auth-kicker{display:inline-flex;margin-bottom:.7rem;color:#78a8ff;font-size:.72rem;font-weight:800;letter-spacing:.19em}
.auth-form-section{margin:1.4rem 0;padding:1.2rem;border:1px solid rgba(148,163,184,.15);border-radius:18px;background:rgba(4,10,22,.34)}
.auth-form-section h2{margin:0 0 1rem;font-size:1rem;color:#e8f1ff}
.auth-field--wide{grid-column:1/-1}.auth-input--uppercase{text-transform:uppercase;letter-spacing:.08em}
.auth-separator{display:flex;align-items:center;gap:1rem;margin:1.3rem 0;color:#7890b1;font-size:.78rem}.auth-separator:before,.auth-separator:after{content:"";height:1px;flex:1;background:rgba(148,163,184,.16)}
.auth-secondary-button{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid rgba(107,142,255,.34);border-radius:12px;color:#dce8ff;text-decoration:none;font-weight:750;background:rgba(73,94,180,.09)}
.auth-footer--quiet{font-size:.78rem;opacity:.78}.auth-check--terms{margin:1rem 0 1.3rem;align-items:flex-start}
@media(max-width:720px){.auth-form-section{padding:.9rem}.auth-field--wide{grid-column:auto}}


/* Kurumsal acente başvurusu düzeni */
.auth-card--application {
    width: min(100%, 1040px);
}

.auth-grid--application {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
    align-items: start;
}

.auth-field--span-2 {
    grid-column: span 2;
}

.auth-textarea {
    min-height: 112px;
    height: auto;
    padding-block: 14px;
    resize: vertical;
    line-height: 1.55;
}

.auth-grid--application .auth-field {
    min-width: 0;
}

@media (max-width: 980px) {
    .auth-card--application {
        width: min(100%, 780px);
    }

    .auth-grid--application {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-field--span-2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .auth-grid--application {
        grid-template-columns: 1fr;
    }

    .auth-field--span-2,
    .auth-grid--application .auth-field--full {
        grid-column: auto;
    }
}
