/* Giriş sayfası — cam / minimal, uygulama temasıyla uyumlu */

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

.auth-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    box-sizing: border-box;
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.auth-page__ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 58% 48% at 8% 2%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 66%),
        radial-gradient(ellipse 42% 38% at 100% 100%, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 62%),
        var(--bg-app);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
    width: min(100%, 69rem);
    min-height: min(43rem, calc(100vh - clamp(2rem, 6vw, 5rem)));
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.13), 0 4px 18px rgba(15, 23, 42, 0.05);
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(2.5rem, 5vw, 4.75rem);
    overflow: hidden;
    color: #f8fafc;
    background:
        radial-gradient(circle at 78% 17%, rgba(56, 189, 248, 0.2), transparent 27%),
        radial-gradient(circle at 16% 84%, rgba(99, 102, 241, 0.25), transparent 32%),
        linear-gradient(145deg, #101827 0%, #15233d 58%, #172554 100%);
}

.auth-showcase::before,
.auth-showcase::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.auth-showcase::before {
    width: 25rem;
    height: 25rem;
    right: -12rem;
    top: -10rem;
}

.auth-showcase::after {
    width: 18rem;
    height: 18rem;
    right: -8rem;
    top: -6rem;
}

.auth-showcase__content,
.auth-showcase__foot {
    position: relative;
    z-index: 1;
}

.auth-showcase__eyebrow,
.auth-card__eyebrow {
    display: block;
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.auth-showcase__eyebrow {
    color: #7dd3fc;
}

.auth-showcase__title {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(2.35rem, 4.4vw, 4.15rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.auth-showcase__lead {
    max-width: 34rem;
    margin: 1.5rem 0 0;
    color: rgba(226, 232, 240, 0.8);
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    line-height: 1.75;
}

.auth-showcase__features {
    display: grid;
    gap: 0.85rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(241, 245, 249, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-showcase__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-showcase__features span {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-size: 0.7rem;
}

.auth-showcase__foot {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 3rem 0 0;
    color: rgba(203, 213, 225, 0.68);
    font-size: 0.76rem;
}

.auth-showcase__status {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.auth-login-pane {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: clamp(2rem, 4.5vw, 4.25rem);
    background: rgba(255, 255, 255, 0.96);
}

.auth-card {
    width: 100%;
    max-width: 22rem;
    padding: 3.2rem 1.5rem 1.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 20px;
    box-shadow:
        0 16px 48px rgba(37, 99, 235, 0.12),
        0 2px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.auth-card--admin {
    max-width: 25rem;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-card--admin::after {
    display: none;
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.95;
}

.auth-card__logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0.9rem 0 2.2rem;
    position: relative;
}

.auth-card__logo-wrap::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 129px;
    height: 129px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22) 0%, rgba(14, 165, 233, 0.12) 45%, transparent 82%);
    filter: blur(7px);
    opacity: 0.7;
}

.auth-card__logo-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
    border-radius: 8px;
}

.auth-card__logo-link:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 4px;
}

.auth-card__logo {
    position: relative;
    z-index: 1;
    max-width: 180px;
    max-height: 108px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.22));
}

.auth-card__brand {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--text);
    text-align: center;
}

.auth-card__eyebrow {
    margin-bottom: 0.6rem;
    color: var(--accent);
}

.auth-card__domain {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-2);
    text-align: center;
    word-break: break-all;
}

.auth-card__tagline {
    margin: 0 0 1.25rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-page--client .auth-form,
.auth-page--admin .auth-form {
    width: 100%;
    max-width: min(100%, 19.25rem);
    margin: 0.3rem auto 0;
}

.auth-card--admin .auth-card__logo-wrap {
    justify-content: flex-start;
    margin: 0 0 2.15rem;
}

.auth-card--admin .auth-card__logo-wrap::before {
    left: 2.75rem;
    width: 7rem;
    height: 7rem;
}

.auth-card--admin .auth-card__logo {
    max-width: 8.5rem;
    max-height: 5.25rem;
}

.auth-card--admin .auth-card__brand {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    text-align: left;
}

.auth-card--admin .auth-card__domain,
.auth-card--admin .auth-card__tagline {
    text-align: left;
}

.auth-page--admin .auth-form {
    max-width: none;
    margin: 1.7rem 0 0;
}

.auth-page--client .auth-form__label,
.auth-page--admin .auth-form__label {
    text-align: left;
    font-size: 0.78rem;
}

.auth-page--client .auth-form__input,
.auth-page--admin .auth-form__input {
    font-size: 1.02rem;
    padding: 0.82rem 0.9rem;
    border-radius: 13px;
}

.auth-page--client .auth-form__submit,
.auth-page--admin .auth-form__submit {
    font-size: 1.01rem;
    padding: 0.74rem 1rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    user-select: none;
}

.auth-remember__check {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.auth-form__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.auth-form__input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.13);
    border-radius: 12px;
    box-sizing: border-box;
}

.auth-form__input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.auth-form__submit {
    margin-top: 0.2rem;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #315bea 0%, #2447bd 100%);
    border: 1px solid #2447bd;
    border-radius: 13px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.auth-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}

.auth-form__submit:focus-visible,
.auth-form__input:focus-visible,
.auth-card a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
    outline-offset: 3px;
}

.auth-card--admin > .auth-card__tagline:last-child {
    margin-top: 1.35rem !important;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.auth-card--admin > .auth-card__tagline:last-child a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-alert {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
}

.auth-foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
}

body[data-theme='excel'] .auth-page {
    background-color: #eef3ef;
    background-image:
        linear-gradient(180deg, rgba(226, 239, 218, 0.55) 0%, transparent 40%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(33, 115, 70, 0.08), transparent 55%);
}

body[data-theme='excel'] .auth-card {
    background: #ffffff;
    border: 1px solid #d4dfd8;
    border-top: 3px solid #217346;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(26, 52, 40, 0.1);
}

body[data-theme='excel'] .auth-form__input {
    background: #ffffff;
    border: 1px solid #d4dfd8;
    border-radius: 2px;
}

body[data-theme='excel'] .auth-form__input:focus {
    border-color: #217346;
    box-shadow: 0 0 0 2px rgba(33, 115, 70, 0.15);
}

/* Müşteri giriş — ofis iletişimi (portal_layout.php ile ortak isimler) */
.portal-office-contact--login {
    margin-top: 0;
    padding: 0;
    border-top: none;
}

.auth-client-footer {
    width: 100%;
    max-width: min(100%, 20.5rem);
    margin: 1rem auto 0;
    padding-top: 0.9rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    text-align: center;
}

.auth-client-footer__title {
    margin: 0 0 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.auth-card .portal-office-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.79rem;
    line-height: 1.42;
    color: var(--text-muted);
}

.auth-card .portal-office-contact__line {
    display: block;
}

.auth-card .portal-office-contact a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
}

.auth-card .portal-office-contact a:hover {
    text-decoration: underline;
}

.auth-card .portal-office-contact a:hover {
    text-decoration: underline;
}

.auth-card--wide {
    max-width: 34rem;
}

.auth-app-promo {
    margin-top: 1.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.auth-app-promo__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.auth-app-promo__text {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

.auth-app-promo__link {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-2);
    text-decoration: none;
}

.auth-app-promo__link:hover {
    text-decoration: underline;
}

.auth-app-download__lead {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.auth-app-download__meta {
    margin: 0 0 0.85rem;
    display: grid;
    gap: 0.35rem;
}

.auth-app-download__meta-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    font-size: 0.86rem;
}

.auth-app-download__meta-row dt {
    margin: 0;
    color: var(--muted);
}

.auth-app-download__meta-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.auth-app-download__notes {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text);
}

.auth-app-download__btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.auth-app-steps {
    margin: 1.2rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.auth-app-steps li + li {
    margin-top: 0.45rem;
}

.auth-app-back {
    margin: 1.2rem 0 0;
    text-align: center;
    font-size: 0.88rem;
}

.auth-app-back a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 760px) {
    .auth-page {
        padding: 0;
        width: 100%;
        min-height: 100svh;
        align-items: stretch;
        justify-content: flex-start;
    }

    .auth-shell {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        display: block;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        overflow-x: clip;
    }

    .auth-showcase {
        min-height: auto;
        padding: 1.3rem 1.15rem 1.5rem;
    }

    .auth-showcase__title {
        max-width: 14ch;
        font-size: clamp(1.65rem, 9vw, 2.35rem);
    }

    .auth-showcase__lead {
        margin-top: 0.8rem;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .auth-showcase__features,
    .auth-showcase__foot {
        display: none;
    }

    .auth-login-pane {
        min-height: auto;
        padding: 1.7rem 1rem 2rem;
    }

    .auth-card--admin {
        min-height: auto;
        padding: 0;
    }

    .auth-page--client > .auth-card,
    .auth-page:not(.auth-page--admin) > .auth-card {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 1.55rem 0.82rem 1.05rem;
        overflow-x: clip;
    }

    .auth-card__logo-wrap {
        margin-bottom: 1.35rem;
    }

    .auth-page--client .auth-form,
    .auth-page--admin .auth-form {
        max-width: none;
    }

    .auth-client-footer {
        max-width: min(100%, 18.4rem);
    }
}
