.login-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: auto;
    padding: clamp(32px, 8vh, 88px) 0 32px;
}

.login-card {
    width: min(100%, 880px);
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    background: #ffffff;
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
    margin: 0 auto;
    overflow: hidden;
}

.login-card__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 36px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #2563eb 100%);
}

.login-brand__logo {
    align-self: center;
    width: clamp(120px, 58%, 210px);
    height: auto;
    max-height: 140px;
    margin: 0 0 26px;
    object-fit: contain;
}

.login-brand__logo[hidden] {
    display: none;
}

.login-card__brand .login-brand__eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.login-card__brand .login-brand__title {
    color: #fff;
}

.login-card__brand .login-brand__text {
    color: rgba(255, 255, 255, 0.84);
}

.login-card__form {
    display: flex;
    align-items: center;
    padding: 42px 46px;
}

.login-card__form form {
    width: 100%;
}

.login-brand__eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand__title {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.login-brand__text {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.login-card__form h2,
.login-card__form h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.login-field {
    display: block;
    margin-bottom: 18px;
}

.login-field span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-form__split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.login-password {
    position: relative;
}

.login-password .input {
    padding-right: 46px;
}

.login-password__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.login-password__toggle:hover {
    color: var(--primary);
}

.login-password__toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.login-submit {
    width: 100%;
    margin-top: 8px;
}

.login-secondary-action {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    cursor: pointer;
}

.login-secondary-action:hover {
    text-decoration: underline;
}
