:root {
    font-family: 'Golos Text', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 19px;
    color: rgba(18, 18, 44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: grid;
    min-height: 100vh;
    grid-template-rows: 100px 1fr 60px;
    gap: 72px;
    background-color: #f4f4f5;
}

.page-header {
    background-color: #fff;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 58px;
    box-shadow: 0px 0px 32px 0px rgba(150, 147, 163, 0.16);
}

.logo-area {
    display: grid;
    gap: 16px;
    align-items: center;
    grid-template-columns: 212px 1px auto;
}

.logo-area svg {
    width: 100%;
}

.logo-area .divider {
    width: 1px;
    height: 40px;
    background-color: #ebebee;
}

.logo-area .caption {
    font-size: 14px;
    line-height: 16px;
    color: #12122c;
    max-width: min-content;
}

.page-footer {
    padding: 0 24px;
    border-top: 1px solid #bfbfbf;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04px;
}

.page-footer .copyright {
    color: rgba(130, 130, 130, 1);
}

.page-footer .email {
    color: rgba(142, 142, 157, 1);
    text-decoration: underline;
    text-underline-offset: 1px;
    text-decoration-thickness: 0;
}

.page-footer .phone {
    color: rgba(142, 142, 157, 1);
}

.form-area {
    padding: 0 16px;
}

.form-area .form {
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 540px;
    margin: auto;
    padding: 23px 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 0.14px;
}

#auth-area h1 {
    margin-bottom: -1px;
}

.form-area .form main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-area .form header p {
    margin-top: 8px;
    margin-bottom: -16px;
}

.form-area .results .form header p {
    margin-bottom: 8px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    border: 1px solid #d4d3d9;
    border-radius: 12px;
    height: 56px;
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    padding: 8px 16px;
    color: inherit;
    width: 100%;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="password"]:focus {
    border: 1px solid rgba(34, 42, 118, 1);
    outline: none;
}

.field .input-with-cancel {
    width: 100%;
    position: relative;
}

.field .input-with-cancel .cancel {
    display: flex;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    color: rgba(142, 142, 157, 1);
}

.field .input-with-cancel .cancel:hover {
    color: rgba(34, 42, 118, 1);
}

.field .input-with-cancel .cancel:focus {
    outline: none;
}

.form-area .form footer {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    place-items: center stretch;
    text-align: center;
}

.form-area .results .form {
    gap: 32px;
}

.form-area .results .form footer {
    grid-template-rows: 1fr;
}

.button {
    padding: 0 24px;
    min-width: 224px;
    background-color: rgba(242, 11, 54, 1);
    color: rgba(255, 255, 255, 1);
    border: 0;
    border-radius: 80px;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.05px;
    height: 48px;
    cursor: pointer;
    display: inline-grid;
    text-decoration: none;
    place-items: center;
}

.button:hover {
    background-color: rgba(255, 13, 60, 1);
}

.button:active {
    background-color: rgba(218, 10, 49, 1);
}

.button.loading {
    pointer-events: none;
    opacity: 0.25;
    background-color: rgba(255, 13, 60, 1);
}

.button-link {
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    text-decoration: none;
    color: inherit;
}

#error-message {
    color: rgba(255, 50, 14, 1);
    font-weight: 600;
    text-align: center;
    min-height: 19px;
}

#hall-area {
    max-width: 876px;
    margin: -16px auto 64px;
    padding: 0 16px;
}

.heading {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 32px 36px;
}

.heading h1 {
    margin-bottom: 10px;
}

.heading div {
    font-size: 18px;
    line-height: 28px;
}

.badge {
    font-size: 12px;
    line-height: 12px;
    padding: 5px 6px;
    border-radius: 80px;
    border-width: 1px;
    border-style: solid;
    color: rgba(30, 146, 239, 1);
    border-color: rgba(120, 190, 245, 1);
    display: inline-block;
    text-align: center;
}

.badge.mint {
    color: rgba(0, 163, 126, 1);
    border-color: rgba(115, 217, 194, 1);
}

#hall-area .table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

#hall-area table {
    background-color: rgba(255, 255, 255, 1);
    font-size: 16px;
    line-height: 19px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    margin-top: 28px;
}

#hall-area th {
    height: 64px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(235, 235, 238, 1);
}

#hall-area th+th {
    border-left: 1px solid rgba(235, 235, 238, 1);
}

#hall-area td {
    height: 56px;
    padding: 8px 20px;
    max-width: 200px;
    word-wrap: break-word;
}

#hall-area tr+tr td {
    border-top: 1px solid rgba(235, 235, 238, 1);
}

#hall-area .td-caption {
    display: none;
}

.entrance {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#user-panel {
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.04px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Password toggle UI */
.password-field {
    position: relative;
}

.password-field input.password {
    padding-right: 56px;
    width: 100%;
}

.password-field .password-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    color: rgba(142, 142, 157, 1);
}

.password-field .password-toggle:hover {
    color: rgba(34, 42, 118, 1);
}

.password-field .password-toggle:focus {
    outline: none;
}

@media (max-width: 767px) {
    body {
        grid-template-rows: 69px 1fr 60px;
        gap: 16px;
    }

    .page-header {
        height: 69px;
        padding: 16px;
    }

    .logo-area {
        grid-template-columns: 170.4px 1px auto;
    }

    .logo-area svg {
        height: 64px;
        width: auto;
    }

    .logo-area .caption {
        font-size: 12px;
        line-height: 14px;
    }

    #user-panel {
        display: none;
    }

    .form-area {
        margin: 0;
    }

    .form-area .form {
        border-radius: 16px;
        gap: 20px;
        padding: 16px;
    }

    .form-area .results .form {
        gap: 8px;
    }

    .form-area .form header p {
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 20px;
    }

    .form-area .form main {
        gap: 16px;
    }

    h1 {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 0.08px;
    }

    .field label {
        font-size: 14px;
        line-height: 14px;
    }

    .field input[type="text"],
    .field input[type="email"],
    .field input[type="password"] {
        height: 48px;
    }

    .field .input-with-cancel .cancel {
        padding: 0;
    }

    .password-field .password-toggle {
        padding: 0;
    }

    .button {
        width: stretch;
    }

    #hall-area {
        max-width: 100vw;
        margin: 0;
    }

    .heading div {
        font-size: 14px;
        line-height: 20px;
    }

    #hall-area table {
        font-size: 14px;
        line-height: 20px;
        margin-top: 16px;
    }

    #hall-area th {
        height: 56px;
        line-height: 14px;
    }

    #hall-area td {
        height: 48px;
    }

    .page-footer {
        display: none;
    }
}