* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #2f2f2f;
    background: #ffffff;
}

body {
    min-width: 280px;
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.hero {
    width: min(100%, 560px);
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

.brand__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand__name {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1;
    font-weight: 400;
}

.intro {
    max-width: 500px;
    margin: 0 auto 42px;
    color: #6f6f6f;
    font-size: 1.05rem;
    line-height: 1.6;
}

.box-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-button {
    min-width: min(100%, 290px);
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    padding: 16px 28px;
    background: #333333;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.create-button:hover:not(:disabled) {
    background: #1f1f1f;
    transform: translateY(-1px);
}

.create-button:focus-visible,
.code-input:focus-visible {
    outline: 3px solid rgba(51, 51, 51, 0.22);
    outline-offset: 3px;
}

.create-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.code-label {
    margin-top: 24px;
    margin-bottom: 8px;
    color: #8a8a8a;
    font-size: 0.8rem;
}

.code-input {
    width: 150px;
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 0 14px;
    color: #333333;
    background: #ffffff;
    text-align: center;
    letter-spacing: 0.08em;
    outline: none;
}

.code-input::placeholder {
    color: #aaaaaa;
    letter-spacing: normal;
}

.status-message {
    min-height: 24px;
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.status-message--error {
    color: #a62f2f;
}

.status-message--success {
    color: #317443;
}

@media (max-width: 520px) {
    .page {
        padding: 24px 18px;
    }

    .brand {
        margin-bottom: 28px;
    }

    .brand__logo {
        width: 44px;
        height: 44px;
    }

    .intro {
        margin-bottom: 34px;
        font-size: 1rem;
    }

    .create-button {
        width: 100%;
    }
}
