:root {
    --hf-auth-surface: rgba(255, 252, 251, 0.96);
    --hf-auth-border: rgba(28, 25, 23, 0.08);
    --hf-auth-shadow: 0 24px 60px rgba(28, 25, 23, 0.08);
    --hf-auth-copy: #78716c;
    --hf-auth-font-stack: "Open Sauce One", "Prompt", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
}

.hf-auth-shell,
.hf-auth-shell * {
    font-family: var(--hf-auth-font-stack) !important;
}

.hf-auth-shell {
    position: relative;
}

.hf-auth-shell::before,
.hf-auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.hf-auth-shell::before {
    top: 80px;
    left: 8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(240, 162, 177, 0.18) 0%, rgba(240, 162, 177, 0) 70%);
}

.hf-auth-shell::after {
    right: 8%;
    bottom: 80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(162, 177, 240, 0.18) 0%, rgba(162, 177, 240, 0) 72%);
}

.auth-page-card.hf-auth-card {
    overflow: visible;
}

.auth-page-card.hf-auth-card .auth-page-card__mask {
    top: -24px;
    right: -24px;
    bottom: -24px;
    left: 34%;
    border-radius: 52px;
    background:
        radial-gradient(circle at top right, rgba(162, 177, 240, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(240, 162, 177, 0.22), rgba(250, 246, 244, 0.9) 55%, rgba(177, 240, 162, 0.12));
}

.auth-page-card.hf-auth-card > .position-relative.bg-white.rounded-32 {
    border: 1px solid rgba(28, 25, 23, 0.06);
    background: rgba(255, 252, 251, 0.92) !important;
    box-shadow: var(--hf-auth-shadow);
    backdrop-filter: blur(16px);
}

.hf-auth-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 12px 8px 12px 4px;
}

.hf-auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 100%;
    margin-left: 16px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(28, 25, 23, 0.06);
    background:
        radial-gradient(circle at 18% 90%, rgba(162, 177, 240, 0.2), transparent 20%),
        radial-gradient(circle at 68% 24%, rgba(240, 162, 177, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(255, 250, 249, 0.98), rgba(250, 246, 244, 0.98));
}

.hf-auth-brand-badge {
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(28, 25, 23, 0.06);
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hf-auth-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hf-auth-brand-title {
    margin: 28px 0 16px;
    color: var(--dark);
    font-size: 54px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hf-auth-brand-copy {
    max-width: 520px;
    color: var(--hf-auth-copy);
    font-size: 16px;
    line-height: 1.8;
}

.hf-auth-pill-list {
    gap: 10px;
    margin-top: 24px;
}

.hf-auth-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(28, 25, 23, 0.06);
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
}

.hf-auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hf-auth-proof-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(28, 25, 23, 0.06);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 30px rgba(28, 25, 23, 0.05);
}

.hf-auth-proof-card--accent {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(240, 162, 177, 0.14), rgba(162, 177, 240, 0.12));
}

.hf-auth-proof-value {
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hf-auth-proof-label {
    margin-top: 8px;
    color: var(--hf-auth-copy);
    font-size: 13px;
    line-height: 1.7;
}

.hf-auth-login-form .form-control,
.hf-auth-login-form .select2-selection {
    min-height: 54px;
    border-radius: 18px !important;
}

.hf-auth-form-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(240, 162, 177, 0.16);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hf-auth-login-form h1 {
    color: var(--dark);
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hf-auth-login-form .text-gray-500 {
    color: var(--hf-auth-copy) !important;
}

.hf-auth-login-form .js-submit-form-btn {
    min-height: 56px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    background: var(--dark) !important;
    border-color: var(--dark) !important;
    color: var(--white) !important;
    box-shadow: 0 14px 24px rgba(28, 25, 23, 0.14);
}

.hf-auth-login-form .js-submit-form-btn:hover,
.hf-auth-login-form .js-submit-form-btn:focus {
    background: var(--primary-saturated) !important;
    border-color: var(--primary-saturated) !important;
}

.hf-auth-login-form .auth-register-method-item label {
    height: 46px;
    border-radius: 999px;
    font-weight: 600;
}

.hf-auth-login-form .auth-register-method-item input:checked ~ label {
    color: var(--dark);
    background: rgba(240, 162, 177, 0.72);
    border-color: rgba(240, 162, 177, 0.9);
}

.hf-auth-socials {
    padding: 0 16px 8px;
}

.hf-auth-social-link {
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: rgba(255, 255, 255, 0.82) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hf-auth-social-link:hover {
    transform: translateY(-1px);
    background: rgba(240, 162, 177, 0.12) !important;
    box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
}

.auth-page-form-container {
    height: auto;
    max-height: 420px;
}

@media (max-width: 1199px) {
    .hf-auth-brand-title {
        font-size: 46px;
    }
}

@media (max-width: 991px) {
    .auth-page-card.hf-auth-card .auth-page-card__mask {
        left: 10%;
        right: 10%;
    }

    .hf-auth-form-card {
        padding: 8px 0;
    }
}

@media (max-width: 767px) {
    .hf-auth-shell {
        margin-top: 20px;
    }

    .hf-auth-login-form h1 {
        font-size: 30px;
    }

    .auth-page-form-container {
        max-height: none;
    }
}
