.gacha-auth {
    --auth-green: #08bf5a;
    --auth-green-deep: #059c48;
    --auth-ink: #1c1c1c;
    --auth-sub: #6b7280;
    --auth-line: #e2e5e9;
    --auth-bg: #f5f6f8;
    --auth-card: #ffffff;
    --auth-danger: #e5484d;
    --auth-danger-bg: #fdecec;
    --auth-link: #1e34a3;
    --auth-radius: 16px;
    --auth-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 48px 16px;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: 'Inter', sans-serif;
}

.gacha-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 36px 32px 28px;
}

.gacha-auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.gacha-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(8, 191, 90, 0.12);
    color: var(--auth-green-deep);
    font-size: 22px;
    margin-bottom: 14px;
}

.gacha-auth-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
}

.gacha-auth-subtitle {
    color: var(--auth-sub);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    margin: 8px 0 0;
}

.gacha-auth-field {
    margin-bottom: 18px;
}

.gacha-auth-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.gacha-auth-hint {
    color: var(--auth-sub);
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
}

.gacha-auth-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gacha-auth-input::placeholder {
    color: #b0b5bd;
}

.gacha-auth-input:focus {
    outline: none;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(8, 191, 90, 0.18);
}

.gacha-auth-input--error,
.gacha-auth-input--error:focus {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.gacha-auth-error {
    color: var(--auth-danger);
    font-size: 12px;
    font-weight: 600;
    margin: 6px 0 0;
}

.gacha-auth-alert {
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.gacha-auth-alert p {
    margin: 0;
}

.gacha-auth-alert p + p {
    margin-top: 4px;
}

.gacha-auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--auth-bg);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 4px 0 22px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    cursor: pointer;
}

.gacha-auth-agree input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gacha-auth-checkbox {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #9aa1ab;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.gacha-auth-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.gacha-auth-agree input:checked + .gacha-auth-checkbox {
    background: var(--auth-green);
    border-color: var(--auth-green);
}

.gacha-auth-agree input:checked + .gacha-auth-checkbox::after {
    opacity: 1;
}

.gacha-auth-agree input:focus-visible + .gacha-auth-checkbox {
    box-shadow: 0 0 0 3px rgba(8, 191, 90, 0.25);
}

.gacha-auth-link {
    color: var(--auth-link);
    font-weight: 700;
}

.gacha-auth-link:hover {
    color: var(--auth-link);
    text-decoration: underline;
}

.gacha-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, transform 0.05s;
}

.gacha-auth-btn--primary {
    background: var(--auth-green);
    color: #fff;
    box-shadow: 0 6px 16px rgba(8, 191, 90, 0.28);
}

.gacha-auth-btn--primary:hover:not(:disabled) {
    background: var(--auth-green-deep);
}

.gacha-auth-btn--primary:active:not(:disabled) {
    transform: translateY(1px);
}

.gacha-auth-btn--primary:disabled {
    background: #c9cdd3;
    box-shadow: none;
    cursor: not-allowed;
}

.gacha-auth-btn--ghost {
    background: #fff;
    color: var(--auth-ink);
    border: 1px solid var(--auth-line);
}

.gacha-auth-btn--ghost:hover {
    background: var(--auth-bg);
    color: var(--auth-ink);
    text-decoration: none;
}

.gacha-auth-foot {
    text-align: center;
    color: var(--auth-sub);
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid var(--auth-line);
    margin-top: 24px;
    padding-top: 18px;
}

.gacha-auth-foot .gacha-auth-link {
    margin-left: 4px;
}

.gacha-auth-done {
    text-align: center;
}

.gacha-auth-done .gacha-auth-head {
    margin-bottom: 24px;
}

.gacha-auth-done .gacha-auth-icon {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

@media (max-width: 575.98px) {
    .gacha-auth {
        align-items: flex-start;
        padding: 24px 16px 40px;
        min-height: calc(100vh - 120px);
    }

    .gacha-auth-card {
        padding: 28px 20px 22px;
        border-radius: 14px;
    }

    .gacha-auth-title {
        font-size: 21px;
    }
}
