:root {
    --ff-em1-page: #FFF;
    --ff-em1-topbar: #050505;
    --ff-em1-card: #E6E6E6;
    --ff-em1-text: #262626;
    --ff-em1-label:#18181B;
    --ff-em1-field: #FFF;
    --ff-em1-accent: #f2cc00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    color: var(--ff-em1-text);
    background: var(--ff-em1-page);
}

.ff-em1-topbar {
    height: 231px;
    background: var(--ff-em1-topbar);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ff-em1-top-logo {
    max-height: 86px;
    width: auto;
    object-fit: contain;
}

.ff-em1-top-logo-haxe {
    padding-left: 20px;
}

.ff-em1-main {
    min-height: calc(100vh - 138px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 54px 0px 44px;
}

.ff-em1-kicker {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 22px;
}

.ff-em1-kicker-dot {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #444;
}

.ff-em1-main h1 {
    color: #262522;
    font-family: 'urbane', sans-serif;
    margin: 0 0 75px;
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.44px;
    line-height: 60px;
}

.ff-em1-card {
    width: 100%;
    max-width: 655px;
    background: var(--ff-em1-card);
    border-radius: 10px;
    border: 1px solid #D9D9D9;
    margin: 0 auto;
    padding: 30px;
}

form  {
    gap: 40px 20px;
    display: flex;
    flex-wrap: wrap;
}

form > div {
    flex: 1 1 calc(50% - 10px);
}

.form-label {
    font-weight: 600;
    letter-spacing: -0.48px;
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--ff-em1-label);
    padding-left: 12px;
}

.form-control {
    min-height: 42px;
    border-radius: 4px;
    background: var(--ff-em1-field);
    border-color: var(--ff-em1-field);
    box-shadow: none;
}

.form-control:hover, .form-control:active {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.40);
}

.form-control:focus {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.40);
    border: 1px solid #888;
}

.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ff-em1-accent);
    border: 2px solid var(--ff-em1-accent);
    color: #0F0F0F;
    font-weight: 700;
    font-size: 14px;
    border-radius: 5px;
    width: 100%;
    min-height: 44px;
    padding: 12px 20px;
    margin-top: 10px;
}

.btn-submit:hover,
.btn-submit:focus,
.btn-submit:active {
    background: #fff;
}

.errorMessageContainer {
    color: #b3261e;
    font-size: 0.95rem;
    display: none;
}

@media (max-width: 768px) {
    .ff-em1-topbar {
        height: 112px;
        padding: 14px 16px;
    }

    .ff-em1-top-logo {
        max-height: 66px;
    }
    .ff-em1-top-logo-haxe {
        padding-left: 10px;
    }

    .ff-em1-main {
        min-height: calc(100vh - 112px);
        padding: 28px 16px 34px;
    }

    .ff-em1-kicker {
        margin-bottom: 14px;
        font-size: 14px;
        gap: 10px;
        letter-spacing: 0.01em;
    }

    .ff-em1-kicker-dot {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        background: #3b3b3b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
        line-height: 1;
    }

    .ff-em1-main h1 {
        margin: 0 auto 28px;
        max-width: 320px;
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -0.96px;
    }

    .ff-em1-card {
        max-width: 470px;
        padding: 30px 20px;
        border: 1px solid #c8c8c8;
        border-radius: 10px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .ff-em1-card .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .ff-em1-card .col-12.col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .ff-em1-card .form-label {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .ff-em1-card .form-control {
        min-height: 44px;
    }

    .ff-em1-card .btn-submit {
        margin-top: 10px;
        min-height: 40px;
        font-size: 14px;
        border-radius: 5px;
    }
}
