/* 계정 화면의 입력·피드백·버튼·상태 안내를 공유하는 최소 컴포넌트. */
.account-toast {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: min(480px, calc(100% - 40px));
    min-height: 65px;
    padding: 16px 16px 16px 14px;
    border-radius: 16px;
    background: rgb(20 20 20 / 80%);
    backdrop-filter: blur(70px);
    color: #fff;
    font: 700 14px/20px "UNCLASS Pretendard", system-ui, sans-serif;
    letter-spacing: -.04em;
    white-space: pre-line;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.account-toast[hidden] {
    display: none;
}

.account-toast img {
    flex: none;
}

@font-face {
    font-family: "UNCLASS Pretendard";
    src: url("/app/fonts/pretendard/PretendardVariable.woff2") format("woff2");
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
}

.account-input {
    min-width: 0;
    min-height: var(--account-control-height, 50px);
    height: var(--account-control-height, 50px);
    font: inherit;
}

.input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-row .account-input {
    flex: 1;
}

.input-row .account-button-secondary {
    flex: none;
    width: auto;
    margin: 0;
    padding: 0 20px;
    border: 2px solid #482421;
    background: transparent;
    color: #1a1a1a;
    font-size: 14px;
}

.password-field {
    position: relative;
}

.password-field .account-input {
    padding-right: 60px;
}

.password-field .password-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0 8px 0 auto;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.field-message {
    display: block;
    min-height: 14px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #5f5f5f;
}

.field-message:empty {
    display: none;
}

.field-message[data-state="success"] {
    color: #2e7d5b;
}

.field-message[data-state="error"] {
    color: #b42318;
}

.account-input[data-state="success"] {
    border-color: #2e7d5b;
}

.account-input[data-state="error"] {
    border-color: #b42318;
}

.account-input:focus {
    border-color: #1b21d7;
    outline: none;
    box-shadow: none;
}

.account-button:disabled,
.account-button-primary:disabled,
.account-complete:disabled {
    background: #e1e1e1;
    color: #929292;
    opacity: 1;
    cursor: default;
}

.account-state-card {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: 32px 20px;
    border: 1px dashed #482421;
    border-radius: 24px;
    text-align: center;
    color: #482421;
}

.account-state-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.account-state-card p {
    margin: -12px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: #6b4a46;
}

.account-facts {
    border: 0;
    margin: 32px 0;
}

.account-facts div {
    padding: 16px 0;
}

.account-facts div:first-child {
    padding-top: 0;
}

.account-facts div:last-child {
    border: 0;
    padding-bottom: 0;
}

.account-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 59px;
    border-radius: 16px;
    background: #1b21d7;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.account-note {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
}
