/*
 * Giris / kayit ekranlari.
 *
 * Ana sitede panelin styles.css'i yuklenmiyor; bu ekranlarin stilleri burada.
 * Tema formu alt cizgili input + kucuk radio dugmelerle geliyordu, rol secimi
 * bir form alani gibi gorunmuyordu.
 */
.tm-auth {
    align-items: center;
    background: linear-gradient(180deg, #f6f4fd 0%, #f1eefb 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    /* Ust menu sabit (sticky) duruyor; kart onun altinda kalmasin. */
    padding: 108px 16px 72px;
    width: 100%;
}

.tm-auth__wrap {
    margin: 0 auto;
    max-width: 1060px;
    width: 100%;
}

/* Tek sutunlu ekranlar (sifre unuttum/yenile): marka paneli yok. */
.tm-auth__wrap--narrow {
    max-width: 520px;
}

.tm-auth__card--single {
    border-radius: 26px;
}

/* Iki sutun: solda marka paneli, sagda form. */
.tm-auth--split {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
}

.tm-auth__aside {
    background:
        radial-gradient(520px 300px at 88% -20%, rgba(255, 255, 255, .16), transparent 70%),
        linear-gradient(160deg, #5B4BE0 0%, #6d5ce8 60%, #8172ef 100%);
    border-radius: 26px 0 0 26px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
}

.tm-auth__badge {
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    padding: 8px 16px;
    width: fit-content;
}

.tm-auth__aside h2 {
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0 0 28px;
}

.tm-auth__points {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.tm-auth__points li {
    align-items: flex-start;
    color: rgba(255, 255, 255, .88);
    display: flex;
    font-size: 15px;
    gap: 12px;
    line-height: 1.55;
    padding: 10px 0;
}

.tm-auth__points i {
    color: #fff;
    padding-top: 2px;
}

.tm-auth__note {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    margin: 0;
}

.tm-auth__note a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .tm-auth--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-auth__aside {
        border-radius: 26px 26px 0 0;
        padding: 32px 26px;
    }

    .tm-auth__aside h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .tm-auth__points {
        margin-bottom: 18px;
    }
}

.tm-auth__card {
    background: #fff;
    border: 1px solid #eeeef4;
    border-radius: 0 26px 26px 0;
    box-shadow: 0 34px 76px -46px rgba(30, 30, 56, .45);
    padding: 44px 44px;
    width: 100%;
}

@media (max-width: 991px) {
    .tm-auth__card {
        border-radius: 0 0 26px 26px;
        padding: 32px 24px;
    }
}

.tm-auth__head {
    margin-bottom: 24px;
}

.tm-auth__title {
    font-size: 26px;
    margin: 0 0 6px;
}

.tm-auth__sub {
    color: #8b8ba3;
    font-size: 14px;
    margin: 0;
}

.tm-auth__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- Rol secimi --- */
.tm-auth__roles {
    border: 0;
    margin: 0;
    padding: 0;
}

.tm-auth__roles legend {
    color: #17173d;
    float: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    width: auto;
}

.tm-role-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-role {
    cursor: pointer;
    display: block;
    margin: 0;
    /* Tik rozeti kartin disina tastigi icin kirpilmamali */
    overflow: visible;
    padding-top: 6px;
    position: relative;
}

/* Tema global kurali radio'yu gizliyor; kart zaten uzerine biniyor */
.tm-role input[type="radio"] {
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

/* Dikey duzen: yan yana ikon+metin dar sutunda "Terapi desteği alıyorum"u
   uc satira boluyor ve tik rozeti basligin uzerine biniyordu. */
.tm-role__box {
    align-items: center;
    background: #fbfbfe;
    border: 1px solid #ececf1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 18px 12px 14px;
    position: relative;
    text-align: center;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.tm-role:hover .tm-role__box {
    border-color: #b9a6ff;
}

.tm-role input:checked ~ .tm-role__box {
    background: #f7f4ff;
    border-color: #5B4BE0;
    box-shadow: 0 0 0 3px rgba(91, 75, 224, .12);
}

.tm-role input:focus-visible ~ .tm-role__box {
    box-shadow: 0 0 0 3px rgba(91, 75, 224, .3);
}

.tm-role__icon {
    align-items: center;
    background: rgba(91, 75, 224, .1);
    border-radius: 12px;
    color: #5B4BE0;
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.tm-role__icon i {
    font-size: 18px;
}

.tm-role__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    min-width: 0;
}

.tm-role__text strong {
    color: #17173d;
    font-size: 15px;
}

.tm-role__text small {
    color: #8b8ba3;
    font-size: 12px;
}

/* Tik rozeti kartin kosesinde, metinle ayni satirda degil: eskiden baslik
   yazisinin uzerine biniyordu. */
.tm-role__check {
    align-items: center;
    background: #5B4BE0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: none;
    height: 24px;
    justify-content: center;
    position: absolute;
    right: -8px;
    top: -8px;
    width: 24px;
}

.tm-role__check i {
    font-size: 12px;
}

.tm-role input:checked ~ .tm-role__box .tm-role__check {
    display: flex;
}

/* --- Alanlar --- */
.tm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tm-field > label {
    color: #17173d;
    font-size: 13px;
    font-weight: 600;
}

.tm-field__control {
    align-items: center;
    background: #fbfbfe;
    border: 1px solid #ececf1;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    padding: 0 14px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.tm-field__control:focus-within {
    background: #fff;
    border-color: #5B4BE0;
    box-shadow: 0 0 0 3px rgba(91, 75, 224, .1);
}

.tm-field__control > i {
    color: #9a9ab0;
}

.tm-field__control input {
    background: transparent;
    border: 0;
    color: #17173d;
    flex: 1;
    height: 50px;
    padding: 0;
    width: 100%;
}

.tm-field__control input:focus {
    box-shadow: none;
    outline: none;
}

.tm-field__toggle {
    background: none;
    border: 0;
    color: #8b8ba3;
    padding: 0;
}

.tm-field__toggle:hover {
    color: #17173d;
}

/* --- Alt satir --- */
.tm-auth__row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.tm-auth__remember {
    align-items: center;
    color: #4a4a63;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin: 0;
}

.tm-auth__remember input {
    accent-color: #5B4BE0;
    height: 16px;
    opacity: 1;
    position: static;
    width: 16px;
}

.tm-link {
    color: #5B4BE0;
    font-size: 13px;
    font-weight: 600;
}

.tm-btn {
    align-items: center;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    padding: 14px 20px;
    transition: transform .15s ease, filter .15s ease;
}

/* Gradyan buton sitenin geri kalanindaki duz indigo dille uyusmuyordu. */
.tm-btn--primary {
    background: #5B4BE0;
    box-shadow: 0 14px 30px -18px rgba(91, 75, 224, .6);
    color: #fff;
}

.tm-btn--primary:hover {
    background: #4a3bc7;
    color: #fff;
}

.tm-auth__submit {
    width: 100%;
}

.tm-auth__error {
    color: #e0435a;
    font-size: 12px;
}

.tm-auth__foot {
    color: #8b8ba3;
    font-size: 14px;
    margin: 22px 0 0;
    text-align: center;
}

.tm-auth__foot a {
    color: #5B4BE0;
    font-weight: 600;
}

.tm-auth__sep {
    margin: 0 6px;
    opacity: .5;
}

@media (max-width: 575px) {
    .tm-auth {
        padding: 150px 12px 48px;
    }

    .tm-role-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-role__box {
        flex-direction: row;
        text-align: left;
    }

    .tm-auth__card {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   Kayit anketi

   Sayfa tema "bakim/geri sayim" blogunun uzerine kuruluydu: arka plan
   gorseli, ust barsiz yuzen bir kart, kucuk radyo dugmeleri, pembe/soluk
   butonlar ve adim sayaci yoktu.
   ========================================================================== */
.tm-signup {
    background: linear-gradient(180deg, #f6f4fd 0%, #f1eefb 100%);
    min-height: 100vh;
    /* Ust menu sabit; kart onun altinda kalmasin. */
    padding: 108px 16px 64px;
}

.tm-signup__have {
    color: #74748c;
    font-size: 14px;
    margin: 22px 0 0;
    text-align: center;
}

.tm-signup__have a {
    color: #5B4BE0;
    font-weight: 600;
}

.tm-signup__card {
    background: #fff;
    border: 1px solid #eeeef4;
    border-radius: 26px;
    box-shadow: 0 34px 76px -46px rgba(30, 30, 56, .4);
    margin: 0 auto;
    max-width: 820px;
    padding: 36px 40px 32px;
}

/* --- Ilerleme ------------------------------------------------------------- */
.tm-wizard__progress {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.tm-wizard__bar {
    background: #f0eefb;
    border-radius: 999px;
    flex: 1 1 auto;
    height: 6px;
    overflow: hidden;
}

.tm-wizard__bar span {
    background: linear-gradient(90deg, #5B4BE0, #8172ef);
    border-radius: 999px;
    display: block;
    height: 100%;
    transition: width .3s ease;
}

.tm-wizard__count {
    color: #74748c;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Soru ----------------------------------------------------------------- */
.tm-wizard__question {
    color: #1e1e38;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0 0 8px;
}

.tm-wizard__hint {
    color: #74748c;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 26px;
}

.tm-wizard__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

/* Secenek: kucuk radyo dugmesi yerine tiklanabilir satir. */
.tm-option {
    align-items: center;
    background: #fbfaff;
    border: 1px solid #eeeef4;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    transition: background-color .16s ease, border-color .16s ease;
}

.tm-option:hover {
    background: #f6f4fd;
}

.tm-option.is-selected {
    background: #f4f2fd;
    border-color: rgba(91, 75, 224, .45);
}

.tm-option input {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.tm-option__flag {
    height: 16px;
    width: 24px;
}

.tm-option__label {
    color: #1e1e38;
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.5;
}

.tm-option__mark {
    align-items: center;
    border: 1px solid #dcdce6;
    border-radius: 50%;
    color: transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    height: 24px;
    justify-content: center;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    width: 24px;
}

.tm-option.is-selected .tm-option__mark {
    background: #5B4BE0;
    border-color: #5B4BE0;
    color: #fff;
}

/* --- Diger alan tipleri --------------------------------------------------- */
.tm-wizard__input,
.tm-wizard__select {
    background: #fbfaff;
    border: 1px solid #eeeef4;
    border-radius: 16px;
    color: #1e1e38;
    font-size: 15px;
    padding: 15px 18px;
    width: 100%;
}

.tm-wizard__input:focus,
.tm-wizard__select:focus {
    border-color: rgba(91, 75, 224, .45);
    outline: none;
}

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

.tm-wizard__grid .tm-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-wizard__grid .tm-field span {
    color: #1e1e38;
    font-size: 14px;
    font-weight: 600;
}

.tm-wizard__grid .tm-field input {
    background: #fbfaff;
    border: 1px solid #eeeef4;
    border-radius: 14px;
    font-size: 15px;
    padding: 13px 16px;
    width: 100%;
}

.tm-wizard__grid .tm-field input:focus {
    border-color: rgba(91, 75, 224, .45);
    outline: none;
}

/* --- Onaylar -------------------------------------------------------------- */
.tm-consents {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.tm-consent {
    align-items: flex-start;
    color: #5a5a72;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    gap: 12px;
    line-height: 1.55;
    padding: 9px 0;
}

.tm-consent input {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.tm-consent__mark {
    align-items: center;
    border: 1px solid #dcdce6;
    border-radius: 7px;
    color: transparent;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    height: 20px;
    justify-content: center;
    margin-top: 1px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    width: 20px;
}

.tm-consent.is-selected .tm-consent__mark,
.tm-consent input:checked + .tm-consent__mark {
    background: #5B4BE0;
    border-color: #5B4BE0;
    color: #fff;
}

/* Klavyeyle gezinirken kutunun secili oldugu gorunsun. */
.tm-consent input:focus-visible + .tm-consent__mark {
    box-shadow: 0 0 0 3px rgba(91, 75, 224, .25);
}

/* --- Gezinme -------------------------------------------------------------- */
.tm-wizard__nav {
    align-items: center;
    border-top: 1px solid #eeeef4;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
}

.tm-wizard__back {
    align-items: center;
    background: transparent;
    border: 1px solid #eeeef4;
    border-radius: 999px;
    color: #5a5a72;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    padding: 12px 20px;
    transition: background-color .16s ease, color .16s ease;
}

.tm-wizard__back:hover {
    background: #f4f2fd;
    color: #5B4BE0;
}

.tm-wizard__next {
    align-items: center;
    background: #5B4BE0;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 30px -18px rgba(91, 75, 224, .6);
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    margin-left: auto;
    padding: 13px 26px;
    transition: background-color .16s ease, gap .16s ease;
}

.tm-wizard__next:hover:not(:disabled) {
    background: #4a3bc7;
    gap: 12px;
}

/* Devre disi buton eskiden soluk pembeydi, tiklanabilir gorunuyordu. */
.tm-wizard__next:disabled {
    background: #e7e5f5;
    box-shadow: none;
    color: #a3a1bd;
    cursor: not-allowed;
}

.tm-wizard__error {
    background: #fff4f4;
    border: 1px solid #ffdcdc;
    border-radius: 14px;
    color: #c8384f;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 14px 16px;
}

@media (max-width: 767px) {
    .tm-signup__card {
        border-radius: 22px;
        padding: 26px 20px 22px;
    }

    .tm-wizard__question {
        font-size: 20px;
    }

    .tm-wizard__options--grid,
    .tm-wizard__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
