﻿.login-screen {
    width: min(1180px, 100%);
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(760px, calc(100vh - 1rem));
    max-height: calc(100vh - 1rem);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(19, 22, 25, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(58, 48, 10, 0.14);
}

.login-showcase {
    padding: 0.9rem;
    background: #fff;
}

.login-showcase__inner {
    height: 100%;
    display: grid;
    place-items: end start;
    border-radius: 1.55rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.42), transparent 22%),
        linear-gradient(165deg, #ffd728 0%, #ffea74 100%);
    position: relative;
}

.login-showcase__brand {
    position: absolute;
    top: 1.15rem;
    left: 1.15rem;
    z-index: 2;
}

.login-showcase__brand-mark {
    width: 3.6rem;
    height: 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(19, 22, 25, 0.08);
    box-shadow: 0 10px 24px rgba(58, 48, 10, 0.08);
    backdrop-filter: blur(8px);
}

.login-showcase__brand-mark .app-logo {
    width: 2.05rem;
    height: 2.05rem;
}

.login-showcase__copy {
    position: absolute;
    right: 1.55rem;
    top: 1.55rem;
    z-index: 2;
    width: min(70%, 30rem);
    display: grid;
    justify-items: end;
    gap: 0.18rem;
    height: 80px;
}

.login-showcase__copy-rotator,
.login-showcase__copy-static {
    margin: 0;
    width: 100%;
    font-family: "Bahnschrift", "Aptos", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 2.2vw, 1.5rem);
    line-height: 1;
    text-wrap: pretty;
    text-align: right;
}

.login-showcase__copy-rotator {
    position: relative;
    min-height: 1.38em;
    color: #232323;
}

.login-showcase__copy-rotator span {
    position: absolute;
    inset: 0 0 auto auto;
    opacity: 0;
    transform: translateY(0.28em) scale(0.985);
    filter: blur(6px);
    will-change: opacity, transform, filter;
    animation: showcase-copy-flip 9s infinite;
}

.login-showcase__copy-rotator span:nth-child(2) {
    animation-delay: 3s;
}

.login-showcase__copy-rotator span:nth-child(3) {
    animation-delay: 6s;
}

.login-showcase__copy-static {
    color: #444;
}

@keyframes showcase-copy-flip {
    0%,
    6% {
        opacity: 0;
        transform: translateY(0.28em) scale(0.985);
        filter: blur(6px);
    }

    12%,
    28% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    36%,
    100% {
        opacity: 0;
        transform: translateY(-0.24em) scale(1.01);
        filter: blur(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-showcase__copy-rotator span {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .login-showcase__copy-rotator span:first-child {
        opacity: 1;
    }
}

.login-showcase__image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: end start;
    overflow: hidden;
}

.login-showcase__image {
    display: block;
    width: min(100%, 35rem);
    height: auto;
    max-height: calc(100% - 8rem);
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 22px 28px rgba(16, 16, 16, 0.16));
}

.login-showcase__inner::after {
    content: "";
    position: absolute;
    inset: auto -8% -22% auto;
    width: 15rem;
    height: 15rem;
    border-radius: 999px;
    background: rgba(47, 124, 255, 0.12);
    filter: blur(12px);
}

.login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: clamp(1.75rem, 2.4vw, 2.8rem) clamp(2rem, 3vw, 3.5rem);
}

.login-panel-inner {
    width: min(100%, 380px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-copy {
    display: grid;
    gap: 0.3rem;
}

.login-copy p,
.login-footnote {
    color: #6c675f;
}

.login-copy__title {
    margin: 0;
    font-size: clamp(1.9rem, 2.5vw, 2.8rem);
    line-height: 1;
}

.login-copy p {
    margin: 0;
    font-size: 0.95rem;
}

.login-security-note {
    color: #8a847a;
}

.login-status {
    min-height: 0;
}

.login-status .mud-alert {
    border-radius: 1rem;
}

.login-form {
    display: grid;
    gap: 1.35rem;
    width: 100%;
}

.login-form > * + * {
    margin-top: 0.15rem;
}

.login-field {
    display: grid;
    gap: 0.32rem;
}

.login-field label,
.login-checkbox,
.login-link,
.login-footnote {
    font-size: 0.95rem;
}

.login-field label {
    color: #6c675f;
}

.login-input {
    width: 100%;
}

.login-input .mud-input-control,
.login-input .mud-input,
.login-input .mud-input-slot,
.login-input .mud-input-root {
    width: 100%;
    background: transparent;
}

.login-input .mud-input-label {
    color: #6c675f;
}

.login-input input {
    width: 100%;
    padding: 0 0 0.3rem;
    border: none;
    border-bottom: 1px solid rgba(19, 22, 25, 0.14);
    border-radius: 0;
    background: transparent;
    color: #171717;
    font: inherit;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
    transition: border-color 180ms ease;
    appearance: none;
    -webkit-appearance: none;
}

.login-input input:focus {
    border-bottom-color: #2f7cff;
}

.login-input input::placeholder {
    color: #a39c91;
    opacity: 1;
}

.login-input input:-webkit-autofill,
.login-input input:-webkit-autofill:hover,
.login-input input:-webkit-autofill:focus {
    -webkit-text-fill-color: #171717;
    transition: background-color 9999s ease-out 0s;
    box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.001);
}

.login-field .validation-message {
    color: #c62828;
    font-size: 0.82rem;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: -0.2rem;
    margin-bottom: 0.35rem;
}

.login-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #171717;
    line-height: 1;
}

.login-checkbox .mud-checkbox {
    margin: 0;
}

.login-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: #2f7cff;
    margin: 0;
    flex: 0 0 auto;
}

.login-link {
    color: #2f7cff;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 3.05rem;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.25rem;
    justify-self: stretch;
    margin-top: 0.15rem;
}

.login-button .mud-button-root {
    width: 100%;
    min-height: inherit;
    border-radius: inherit;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.login-button--primary {
    background: #ffd728;
    color: #232323;
}

.login-button--primary .mud-button-root {
    background: #ffd728;
    color: #232323;
    box-shadow: none;
}

.login-button--primary:hover,
.login-button--primary .mud-button-root:hover {
    filter: brightness(0.98);
}

.login-external {
    display: grid;
    gap: 0.85rem;
}

.login-divider {
    position: relative;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.login-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding-inline: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    color: #8a847a;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-external form,
.login-external p {
    margin: 0;
}

.login-external button {
    width: 100%;
    min-height: 3rem;
    border: none;
    border-radius: 999px;
    background: #f1f1f1;
    color: #171717;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding-inline: 1.25rem;
}

.login-footnote {
    margin: 0;
    padding-top: 0.35rem;
}

.login-security-note {
    margin: 0.6rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.login-security-note > :first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.95rem;
    color: inherit;
    line-height: 1;
}

@media (max-width: 1100px) and (min-width: 821px) {
    .login-showcase__image {
        width: min(100%, 27rem);
    }

    .login-showcase__copy {
        width: min(72%, 31rem);
        right: 0.95rem;
    }

    .login-showcase__brand {
        top: 0.95rem;
        left: 0.95rem;
    }
}

@media (max-height: 900px) and (min-width: 821px) {
    .login-card {
        min-height: min(680px, calc(100vh - 0.75rem));
        max-height: calc(100vh - 0.75rem);
    }

    .login-showcase__image {
        width: min(100%, 30rem);
    }

    .login-showcase__copy {
        width: min(74%, 25rem);
        right: 0.9rem;
    }

    .login-showcase__copy-rotator,
    .login-showcase__copy-static {
        font-size: 1.7rem;
        line-height: 1.16;
    }

    .login-showcase__brand {
        top: 0.9rem;
        left: 0.9rem;
    }

    .login-panel {
        gap: 1.05rem;
        padding: 1.2rem 1.4rem;
    }

    .login-form {
        gap: 0.2rem;
    }

    .login-form > * + * {
        margin-top: 0;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .login-card {
        min-height: min(600px, calc(100vh - 0.6rem));
        max-height: calc(100vh - 0.6rem);
    }

    .login-showcase {
        padding: 0.65rem;
    }

    .login-showcase__image {
        width: min(100%, 24rem);
    }

    .login-showcase__copy {
        width: min(70%, 25rem);
        right: 0.75rem;
    }

    .login-showcase__copy-rotator,
    .login-showcase__copy-static {
        font-size: 1.45rem;
        line-height: 1.12;
    }

    .login-showcase__brand {
        top: 0.75rem;
        left: 0.75rem;
    }

    .login-panel {
        gap: 0.9rem;
        padding: 1.2rem 1.35rem;
    }

    .login-input,
    .login-button {
        min-height: 2.85rem;
    }
}

@media (max-width: 820px) {
    .login-screen {
        width: min(560px, 100%);
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
        border-radius: 1.5rem;
    }

    .login-showcase {
        display: none;
    }

    .login-panel {
        padding: clamp(1.25rem, 4vw, 1.8rem);
    }
}

@media (max-width: 640px) {
    .login-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

