/* Tenant split login — dark promo panel + light branded form */

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior: none;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.tlogin {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
}

/* Left: Fytron promo */

.tlogin-promo {
    flex: 0 0 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.75rem;
    background: #141210;
    --tlogin-brand-amber: #F9B03D;
}

.tlogin-promo__inner {
    width: 100%;
    max-width: 26rem;
}

.tlogin-promo__logo {
    margin-bottom: 2.75rem;
    padding-left: 0.85rem;
}

.tlogin-promo__logo img {
    display: block;
    width: 10.5rem;
    max-width: 72%;
    height: auto;
}

.tlogin-promo__headline {
    position: relative;
    z-index: 1;
    margin: 0 0 1.75rem;
    padding: 0.55rem 0.85rem;
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: #ffffff;
    border-radius: 10px;
    transition: color 0.1s ease;
}

.tlogin-promo__headline.is-highlighted {
    color: #141210;
}

.tlogin-promo__highlight-wrap {
    position: relative;
}

.tlogin-promo__features-highlight {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    height: 0;
    border-radius: 10px;
    background: #F9B03D;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 10px 28px rgba(249, 176, 61, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.tlogin-promo__features {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tlogin-promo__features li {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-0.65rem);
    animation: tlogin-bullet-enter 0.55s ease forwards;
    transition: color 0.1s ease;
}

.tlogin-promo__features li.is-highlighted {
    color: #141210;
}

.tlogin-promo__features li.is-highlighted .tlogin-promo__icon {
    background: rgba(20, 18, 16, 0.12);
    color: #141210;
}

.tlogin-promo__features li:nth-child(1) {
    animation-delay: 0.35s;
}

.tlogin-promo__features li:nth-child(2) {
    animation-delay: 0.55s;
}

.tlogin-promo__features li:nth-child(3) {
    animation-delay: 0.75s;
}

.tlogin-promo__icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8125rem;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.tlogin-promo__feature-text {
    position: relative;
    z-index: 1;
}

@keyframes tlogin-bullet-enter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Right: light tenant-branded login */

.tlogin-form {
    --login-bg: #f9f9f9;
    --login-card-bg: #ffffff;
    --login-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --login-title: #111827;
    --login-text: #6b7280;
    --login-label: #111827;
    --login-input-bg: #f3f4f6;
    --login-input-bg-focus: #ffffff;
    --login-input-border: #d1d5db;
    --login-input-border-focus: #9ca3af;
    --login-input-text: #111827;
    --login-input-placeholder: #9ca3af;
    --login-icon: #9ca3af;
    --login-icon-hover: #6b7280;
    --login-link: #6b7280;
    --login-link-hover: #374151;
    --login-support-link: #111827;
    --login-focus-ring: rgba(249, 176, 61, 0.15);
    --login-submit: #F9B03D;
    --login-submit-hover: #E09A2F;

    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #ffffff;
}

.tlogin-form__inner {
    width: 100%;
    max-width: 400px;
}

.tlogin-form .login-card__header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.tlogin-form .login-card__title {
    font-size: 1.375rem;
    line-height: 1.3;
}

.tlogin-form .login-card__title-name {
    display: block;
    word-break: break-word;
}

.tlogin-form .login-input {
    font-family: inherit;
}

.tlogin-form .alert {
    border-radius: 10px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.tlogin-form .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.tlogin-form .alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

@media (max-width: 900px) {
    html:has(.tlogin:not(.tlogin--public)),
    body:has(.tlogin:not(.tlogin--public)) {
        overflow: hidden;
        height: 100%;
        height: 100dvh;
    }

    .tlogin:not(.tlogin--public) {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .tlogin-promo {
        display: none;
    }

    .tlogin-form {
        flex: 1;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlogin-promo__features li {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .tlogin-promo__features-highlight {
        transition: none;
    }
}
