.hero {
    color: var(--text-primary);
    text-align: center;
    background: linear-gradient(145deg, rgba(242, 249, 246, 0.95), rgba(198, 236, 225, 0.75));
    background-color: #000;
    width: 100vw;
    margin: calc(50% - 50vw);
    min-height: 100dvh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.5rem calc(2rem + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
}

.hero .tagline {
    margin-bottom: 1.6rem;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
}

.hero .subtitle {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0.8;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero.hero--embedded {
    width: 100%;
    min-height: 0 !important;
    margin: 0;
    padding: 1.5rem 0 0;
    background: transparent;
    color: #0f172a;
}

.hero--embedded .FlexContainerRow,
.hero--embedded .login-hero-links {
    max-width: none;
}

.hero--embedded .login-hero-input {
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
}

.hero--embedded .login-hero-input::placeholder {
    color: #64748b !important;
}

.hero--embedded .login-hero-input:hover,
.hero--embedded .login-hero-input:not(:placeholder-shown),
.hero--embedded .login-hero-input.is-active {
    border-color: #93c5fd;
    background: #ffffff;
    color: #0f172a;
}

.hero--embedded .login-hero-input:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.hero--embedded .login-hero-input:-webkit-autofill,
.hero--embedded .login-hero-input:-webkit-autofill:hover,
.hero--embedded .login-hero-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    box-shadow: 0 0 0 1000px #ffffff inset;
    border-color: #93c5fd;
}

.hero--embedded .login-hero-button {
    min-height: 48px;
    border: 1px solid #2563eb;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
}

.hero--embedded .login-hero-button:hover {
    background: #1d4ed8;
}

.hero--embedded .login-hero-link {
    min-height: 44px;
    color: #1d4ed8;
}

.hero--embedded .login-hero-link:hover {
    color: #1e3a8a;
}

@media (min-width: 768px) {
    .hero--embedded .FlexContainerRow {
        flex-direction: column;
    }
}

.FlexContainerRow {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

.FlexContainerRow:has(.login-hero-input:only-child) {
    max-width: 17rem;
}

.login-hero-input {
    display: block;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    box-sizing: border-box;
    margin-right: 0;
    padding: 0.9rem 1.25rem;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.login-hero-input::placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}

.login-hero-input:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.96);
}

.login-hero-input:not(:placeholder-shown),
.login-hero-input.is-active {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.login-hero-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 3px;
}

.login-hero-input:-webkit-autofill,
.login-hero-input:-webkit-autofill:hover,
.login-hero-input:-webkit-autofill:focus,
.login-hero-input:-webkit-autofill:active {
    -webkit-text-fill-color: white;
    box-shadow: 0 0 0 1000px #000000 inset;
    border: 2px solid #000000;
}

.login-hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: white;
    border: 2px solid #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-hero-button:hover {
    background-color: black;
    color: white;
    border-color: black;
}

.login-hero-link {
    flex: 0 1 auto;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.login-hero-link:hover {
    color: #ffffff;
}

.login-hero-links {
    width: 100%;
    max-width: 17rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem !important;
    margin: 0.1rem auto 0;
}

body:has(.public-login-page) .cookie-settings-button {
    display: inline-flex !important;
}

.public-login-page .public-login-hero {
    padding-bottom: clamp(9rem, 16vh, 13rem) !important;
}

@media (min-width: 768px) {
    .FlexContainerRow {
        flex-direction: row;
        max-width: 46rem;
    }

    .FlexContainerRow:has(.login-hero-input:only-child) {
        max-width: 23rem;
    }

    .login-hero-links {
        max-width: 23rem;
    }
}

.email-code-login {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: min(100%, 26rem);
    text-align: left;
}
.email-code-login h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.email-code-login p { font-size: .9rem; line-height: 1.5; margin: 0; }
.email-code-login .login-hero-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .7rem .85rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #94a3b8;
    border-radius: 10px;
    letter-spacing: normal;
    text-transform: none;
}
.email-code-login button { min-height: 44px; }
.email-code-login .login-hero-button { padding: .7rem 1rem; background: #2563eb; color: #fff; border: 0; border-radius: 10px; }
.email-code-login .login-hero-button:hover { background: #1d4ed8; }
.email-code-login :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.email-code-login button:disabled { opacity: .6; cursor: wait; }
