/* ============================================================
   Tenant Master — Modern SaaS giriş / hesap ekranları
   Split-screen: solda indigo→mor degrade marka paneli,
   sağda temiz beyaz form kartı. Panel görsel tonuyla uyumlu.
   ============================================================ */

:root {
    --auth-indigo: #6366f1;
    --auth-indigo-d: #4f46e5;
    --auth-purple: #7c3aed;
    --auth-ink: #1e2233;
    --auth-muted: #6b7280;
    --auth-border: #e6e8f0;
    --auth-bg: #f4f5fb;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--auth-bg);
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--auth-ink);
}

/* ---------------- SOL: Marka paneli ---------------- */
.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .14) 0%, transparent 45%),
        radial-gradient(90% 90% at 0% 100%, rgba(255, 255, 255, .10) 0%, transparent 50%),
        linear-gradient(135deg, var(--auth-indigo-d) 0%, var(--auth-purple) 100%);
}

/* Dekoratif yumuşak daireler */
.auth-aside::before,
.auth-aside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    filter: blur(2px);
    pointer-events: none;
}

.auth-aside::before {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -120px;
}

.auth-aside::after {
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: -80px;
    background: rgba(255, 255, 255, .06);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
}

.auth-brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 20px;
    backdrop-filter: blur(4px);
}

.auth-hero {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.auth-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.auth-hero__title {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.18;
    font-weight: 800;
    margin: 0 0 16px;
}

.auth-hero__sub {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 28px;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}

.auth-features i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .15);
    font-size: 13px;
    flex-shrink: 0;
}

.auth-aside__foot {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .7);
}

/* ---------------- SAĞ: Form alanı ---------------- */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    box-shadow: 0 30px 70px -32px rgba(31, 34, 51, .35);
    padding: 40px 38px 34px;
}

.auth-card__head {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, var(--auth-indigo-d), var(--auth-purple));
    box-shadow: 0 14px 30px -10px rgba(124, 58, 237, .55);
}

.auth-card__title {
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--auth-ink);
}

.auth-card__sub {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
}

/* Alanlar */
.auth-field {
    margin-bottom: 18px;
}

.auth-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3a4151;
    margin-bottom: 7px;
}

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

.auth-input > i {
    position: absolute;
    left: 16px;
    color: #9aa0b3;
    font-size: 15px;
    pointer-events: none;
    transition: color .2s ease;
}

.auth-input .form-control {
    width: 100%;
    height: 50px;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    padding: 0 16px 0 44px;
    font-size: 14.5px;
    color: var(--auth-ink);
    background: #fbfbfe;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input .form-control::placeholder {
    color: #aab0c0;
}

.auth-input .form-control:focus {
    outline: 0;
    border-color: var(--auth-indigo);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}

.auth-input:focus-within > i {
    color: var(--auth-indigo);
}

/* Şifre göster/gizle */
.auth-input--pass .form-control {
    padding-right: 46px;
}

.auth-pass-toggle {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    color: #9aa0b3;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color .2s ease, background .2s ease;
}

.auth-pass-toggle:hover {
    color: var(--auth-indigo);
    background: rgba(99, 102, 241, .08);
}

/* İki alan yan yana (parola / parola tekrar) */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Onay kutusu (kullanım şartları) */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #3a4151;
    cursor: pointer;
    user-select: none;
}

.auth-terms input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--auth-indigo);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-terms a {
    color: var(--auth-indigo);
    font-weight: 600;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* Satır: beni hatırla + parolamı unuttum */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 22px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 13.5px;
    color: #3a4151;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-indigo);
    cursor: pointer;
    margin: 0;
}

.auth-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-indigo);
    text-decoration: none;
    transition: color .2s ease;
}

.auth-link:hover {
    color: var(--auth-purple);
    text-decoration: underline;
}

/* Ana buton */
.auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--auth-indigo-d), var(--auth-purple));
    box-shadow: 0 16px 32px -14px rgba(99, 102, 241, .7);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 20px 38px -14px rgba(124, 58, 237, .75);
}

.auth-submit:active {
    transform: translateY(1px);
}

/* Alt bilgi */
.auth-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--auth-muted);
}

.auth-foot .auth-link {
    font-weight: 700;
}

/* Ayraç (or) */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #aab0c0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

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

/* Validasyon mesajları */
.auth-field .text-danger,
.auth-field .field-validation-error {
    display: block;
    font-size: 12.5px;
    margin-top: 6px;
    color: #e11d48;
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* Hata yokken validation-summary boş kutu olarak görünmesin */
.auth-alert.validation-summary-valid {
    display: none;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert li {
    list-style: disc;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        min-height: 100vh;
        background:
            radial-gradient(100% 60% at 50% 0%, rgba(124, 58, 237, .12) 0%, transparent 60%),
            var(--auth-bg);
    }
}

@media (max-width: 479.98px) {
    .auth-card {
        padding: 30px 22px 26px;
        border-radius: 18px;
    }

    .auth-main {
        padding: 24px 16px;
    }
}
