:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --accent: #f0b90b;
    --accent-deep: #d8a700;
    --text: #0b0e11;
    --muted: #7b8794;
    --line: #e7ebf0;
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100dvh;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "PingFang SC-Regular", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

input {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.page {
    width: 100%;
    max-width: 430px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth,
.auth-card {
    width: 100%;
}

.auth__logo {
    width: 112px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

    .auth__logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
    }

.auth__panel,
.auth-card {
    background: var(--surface);
    border: 1px solid rgba(231, 235, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 16px 18px;
}

.auth__header,
.auth-card__header {
    text-align: center;
    margin-bottom: 18px;
}

.auth__title,
.auth-card__title {
    font-size: 22px;
    line-height: 1.2;
    font-family: "PingFang SC-Semibold", "PingFang SC", sans-serif;
    color: var(--text);
}

.auth__subtitle,
.auth-card__desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.auth__form,
#registerForm {
    display: grid;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #1f2a37;
}

.field__input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0b0e11;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .field__input::placeholder {
        color: #9aa4b2;
    }

    .field__input:focus {
        border-color: rgba(240, 185, 11, 0.95);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.12);
    }

    .field__input.is-invalid {
        border-color: rgba(239, 68, 68, 0.65) !important;
        background: #fff7f7;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
    }

.register-form-modern__error,
.register-form-modern__form-error {
    display: block;
    min-height: 16px;
    margin: 0;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.3;
    color: #ef4444 !important;
    font-weight: 500;
    word-break: break-word;
}

.field__hint {
    display: block;
    margin: 0;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #7b8794;
    word-break: break-word;
}

.primary-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6cf31 0%, var(--accent) 100%);
    color: #111111;
    font-family: "PingFang SC-Semibold", "PingFang SC", sans-serif;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(240, 185, 11, 0.22);
    cursor: pointer;
}

    .primary-btn:active {
        transform: translateY(1px);
    }

    .primary-btn:disabled {
        cursor: not-allowed;
        opacity: 0.82;
    }

.auth__link,
.auth-card__footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

    .auth__link a,
    .auth-card__footer a {
        color: var(--accent-deep);
        font-family: "PingFang SC-Semibold", "PingFang SC", sans-serif;
    }

@media (max-width: 360px) {
    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth__panel,
    .auth-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth__title,
    .auth-card__title {
        font-size: 20px;
    }
}
.field--has-error .field__hint {
    display: none;
}
.swal-home {
    border-radius: 18px;
    border: 1px solid rgba(240, 185, 11, 0.16);
    box-shadow: 0 18px 40px rgba(70, 48, 0, 0.16);
}

.swal-home__title {
    color: #111827;
    font-family: "PingFang SC-Semibold", "PingFang SC", sans-serif;
}

.swal-home .swal2-html-container {
    color: #6b7280;
}

.swal-home__confirm {
    color: #111111 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(240, 185, 11, 0.22) !important;
}