.eds-login-page {
    --eds-purple: #51268a;
    --eds-purple-dark: #35165f;
    --eds-blue: #246fc5;
    --eds-ink: #172033;
    --eds-muted: #647084;
    --eds-border: #dce2ea;
    min-height: calc(100vh - 150px);
    min-height: calc(100dvh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2.5vh, 1.5rem) 1rem;
    background:
        radial-gradient(circle at 8% 10%, rgba(81, 38, 138, 0.08), transparent 28rem),
        linear-gradient(145deg, #f7f8fc 0%, #ffffff 58%, #f4f7fb 100%);
}

.eds-login-shell {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(390px, 1.18fr);
    overflow: hidden;
    border: 1px solid rgba(42, 51, 73, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(32, 25, 55, 0.14);
}

.eds-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 510px;
    padding: 2rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(155deg, #24113f 0%, #51268a 58%, #6840a1 100%);
}

.eds-login-brand::before,
.eds-login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.eds-login-brand::before {
    width: 230px;
    height: 230px;
    top: -105px;
    right: -105px;
    border: 42px solid rgba(255, 255, 255, 0.07);
}

.eds-login-brand::after {
    width: 170px;
    height: 170px;
    right: -70px;
    bottom: -68px;
    background: rgba(255, 255, 255, 0.055);
}

.eds-wordmark,
.eds-brand-message,
.eds-brand-security {
    position: relative;
    z-index: 1;
}

.eds-wordmark-name {
    display: block;
    font-family: Montserrat-SemiBold, Arial, sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

.eds-wordmark-tagline {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    opacity: 0.82;
}

.eds-spectrum {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    height: 7px;
    margin-top: 1.15rem;
    overflow: hidden;
    border-radius: 999px;
}

.eds-spectrum span:nth-child(1) { background: #b51617; }
.eds-spectrum span:nth-child(2) { background: #ed3025; }
.eds-spectrum span:nth-child(3) { background: #f1786d; }
.eds-spectrum span:nth-child(4) { background: #f1e959; }
.eds-spectrum span:nth-child(5) { background: #f3bd32; }
.eds-spectrum span:nth-child(6) { background: #49a65a; }
.eds-spectrum span:nth-child(7) { background: #3c79cf; }
.eds-spectrum span:nth-child(8) { background: #3148ae; }

.eds-brand-message h2 {
    margin: 0 0 0.65rem;
    font-family: Montserrat-SemiBold, Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
}

.eds-brand-message p {
    max-width: 25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    line-height: 1.6;
}

.eds-brand-security {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.eds-login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1.75rem clamp(1.75rem, 4vw, 3.25rem);
}

.eds-login-heading {
    margin-bottom: 1.1rem;
}

.eds-login-heading h1 {
    margin: 0;
    color: var(--eds-ink);
    font-family: Montserrat-SemiBold, Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.eds-login-heading p {
    margin: 0.38rem 0 0;
    color: var(--eds-muted);
    font-size: 0.88rem;
}

.eds-login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    border-radius: 10px;
    background: #eef1f6;
}

.eds-login-tab {
    min-width: 0 !important;
    margin: 0;
    padding: 0.58rem 0.75rem;
    border: 0;
    border-radius: 8px !important;
    color: #5f697a;
    font-family: Montserrat-Medium, Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.eds-login-tab:hover {
    color: var(--eds-purple);
}

.eds-login-tab.active {
    color: var(--eds-purple);
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 31, 44, 0.12);
}

.eds-login-tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eds-login-alert {
    margin-bottom: 0.9rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #f1c6ca;
    border-radius: 9px;
    color: #8c252e;
    background: #fff5f6;
    font-size: 0.82rem;
}

.eds-login-form {
    width: 100%;
    max-width: none;
}

.eds-field {
    margin-bottom: 0.82rem;
}

.eds-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.36rem;
}

.eds-field label {
    margin: 0;
    color: #343c4b;
    font-size: 0.78rem;
    font-weight: 700;
}

.eds-field-control {
    position: relative;
}

.eds-field-control > .fa {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.92rem;
    width: 1rem;
    color: #7b8595;
    font-size: 0.95rem;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.eds-login-page .eds-login-input {
    width: 100%;
    height: 44px;
    padding: 0 0.9rem 0 2.65rem;
    border: 1px solid var(--eds-border);
    border-radius: 9px;
    outline: none;
    color: var(--eds-ink);
    background: #fbfcfe;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.eds-login-page .eds-login-input:hover {
    border-color: #bcc5d2;
}

.eds-login-page .eds-login-input:focus {
    border-color: var(--eds-purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(81, 38, 138, 0.11);
}

.eds-forgot-link {
    color: var(--eds-purple);
    font-size: 0.75rem;
    font-weight: 600;
}

.eds-forgot-link:hover,
.eds-forgot-link:focus {
    color: var(--eds-purple-dark);
}

.eds-primary-button {
    width: 100%;
    height: 44px;
    margin-top: 0.2rem;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--eds-purple);
    font-family: Montserrat-Medium, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(81, 38, 138, 0.2);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.eds-primary-button:hover,
.eds-primary-button:focus {
    color: #fff;
    background: var(--eds-purple-dark);
    box-shadow: 0 10px 22px rgba(53, 22, 95, 0.25);
    transform: translateY(-1px);
}

.eds-login-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.82rem 0;
    color: #8a93a2;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.eds-login-divider::before,
.eds-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e7ed;
}

.eds-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    height: 42px;
    border: 1px solid var(--eds-border);
    border-radius: 9px;
    color: #3e4654;
    background: #fff;
    font-size: 0.83rem;
    font-weight: 600;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.eds-google-button:hover,
.eds-google-button:focus {
    border-color: #b9c2cf;
    color: #252c38;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(24, 31, 44, 0.08);
    text-decoration: none;
}

.eds-google-button svg {
    flex: 0 0 auto;
}

.eds-login-page .text-danger {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
}

@media (max-width: 720px) {
    .eds-login-page {
        min-height: auto;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .eds-login-shell {
        grid-template-columns: 1fr;
        max-width: 470px;
        border-radius: 15px;
    }

    .eds-login-brand {
        display: block;
        min-height: 0;
        padding: 1.25rem 1.5rem;
    }

    .eds-wordmark-name {
        font-size: 2rem;
    }

    .eds-wordmark-tagline {
        margin-top: 0.55rem;
        font-size: 0.55rem;
    }

    .eds-spectrum {
        width: 180px;
        height: 5px;
        margin-top: 0.75rem;
    }

    .eds-brand-message,
    .eds-brand-security {
        display: none;
    }

    .eds-login-form-panel {
        padding: 1.35rem 1.5rem 1.5rem;
    }
}

@media (max-height: 720px) and (min-width: 721px) {
    .eds-login-page {
        align-items: flex-start;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .eds-login-brand {
        min-height: 480px;
    }

    .eds-login-form-panel {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .eds-login-heading {
        margin-bottom: 0.8rem;
    }

    .eds-login-tabs {
        margin-bottom: 0.75rem;
    }

    .eds-field {
        margin-bottom: 0.65rem;
    }

    .eds-login-divider {
        margin: 0.65rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eds-login-page *,
    .eds-login-page *::before,
    .eds-login-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
