/* 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: 1.5rem;
    box-sizing: border-box;
}

.auth-page__ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 78% 50% at 12% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
        radial-gradient(ellipse 58% 42% at 96% 8%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 52%),
        var(--bg-app);
}

.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::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 {
    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__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-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.72rem 0.82rem;
    border-radius: 12px;
}

.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.05em;
    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 color-mix(in srgb, var(--border) 88%, transparent);
    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 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.auth-form__submit {
    margin-top: 0.2rem;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1d4ed8;
    border-radius: 12px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.auth-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.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-card {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        border-radius: 0;
        border-top: none;
        border-bottom: none;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 1.55rem 0.82rem 1.05rem;
        overflow-x: clip;
    }

    .auth-page--client .auth-form,
    .auth-page--admin .auth-form {
        max-width: min(100%, 18rem);
    }

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