@font-face {
    font-family: "Genesis Sans Head Global Lt";
    src: url("/font/GenesisSansHeadKRLight.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Genesis Sans Head Global Rg";
    src: url("/font/GenesisSansHeadKRRegular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --page-max-width: 640px;
    --bg-color: #000;
    --text-color: #fff;
    --button-color: #c97658;
    --button-color-active: #b8664b;
    --line-color: rgba(255, 255, 255, 0.9);
    --placeholder-color: rgba(255, 255, 255, 0.55);
    --font-head-lt: "Genesis Sans Head Global Lt", sans-serif;
    --font-head-rg: "Genesis Sans Head Global Rg", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-head-rg);
    font-weight: 400;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.event-page {
    width: 100%;
    max-width: var(--page-max-width);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    background: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

.login-section {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding:
        calc(clamp(32px, 8.2vw, 54px) + env(safe-area-inset-top))
        clamp(28px, 8.2vw, 52px)
        calc(56px + env(safe-area-inset-bottom));
}

.brand-area {
    width: 100%;
}

.genesis-logo {
    display: block;
    width: clamp(100px, 26vw, 142px);
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.event-title {
    margin: clamp(30px, 7.6vw, 46px) 0 0;
    padding: 0;
    font-family: var(--font-head-lt);
    font-size: clamp(22px, 5.4vw, 34px);
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.045em;
    color: var(--text-color);
}

.genesis-text {
    margin: clamp(5px, 1.2vw, 8px) 0 0;
    padding: 0;
    font-family: var(--font-head-lt);
    font-size: clamp(60px, 15vw, 96px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: var(--text-color);
}

.login-form {
    width: 100%;
    margin-top: clamp(120px, 29vw, 182px);
}

.field-group {
    width: 100%;
}

.field-label {
    display: block;
    margin: 0 0 clamp(7px, 1.8vw, 10px);
    font-family: var(--font-head-rg);
    font-size: clamp(18px, 4.3vw, 24px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--text-color);
}

.phone-input {
    display: block;
    width: 100%;
    height: clamp(35px, 8.2vw, 46px);
    margin: 0;
    padding: 0 clamp(13px, 3.4vw, 20px);
    border: 1px solid var(--line-color);
    border-radius: clamp(8px, 2vw, 12px);
    outline: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-head-rg);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.02em;
    caret-color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
}

.phone-input::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

.phone-input:focus {
    border-color: #fff;
}

.login-button {
    display: block;
    width: 100%;
    height: clamp(46px, 10.8vw, 64px);
    margin: clamp(34px, 8vw, 50px) 0 0;
    padding: 0 clamp(18px, 4vw, 28px);
    border-radius: 999px;
    background: var(--button-color);
    color: var(--text-color);
    font-family: var(--font-head-rg);
    font-size: clamp(18px, 4.2vw, 25px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.login-button:active {
    background: var(--button-color-active);
}

.form-error {
    width: 100%;
    margin: 0 0 clamp(18px, 4vw, 26px);
    padding: 12px 14px;
    border: 1px solid rgba(255, 91, 91, 0.55);
    border-radius: 10px;
    background: rgba(170, 0, 0, 0.22);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.form-error p {
    margin: 0;
}

.form-error p + p {
    margin-top: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (min-width: 641px) {
    body {
        background: #000;
    }
}