/* ==========================================
   Account authentication (prefix: accountauth_)
   ========================================== */

.accountauth_page {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 146px);
    padding: 64px 20px 80px;
    box-sizing: border-box;
}

.accountauth_panel {
    width: min(100%, 520px);
    padding: 34px;
    border: 1px solid rgba(255, 246, 155, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(18, 16, 30, 0.94), rgba(5, 7, 18, 0.92)),
        rgba(0, 0, 0, 0.8);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(9px);
    box-sizing: border-box;
}

.accountauth_panel_wide {
    width: min(100%, 720px);
}

.accountauth_panel_compact {
    width: min(100%, 480px);
    text-align: center;
}

.accountauth_brand {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.accountauth_brand_logo {
    width: 132px;
    height: 132px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255, 246, 155, 0.2));
}

.accountauth_eyebrow {
    margin: 0 0 8px;
    color: #d7cc82;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
}

.accountauth_title {
    margin: 0;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
}

.accountauth_description {
    margin: 14px auto 28px;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.accountauth_notice {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.accountauth_notice_error {
    color: #ffd6d6;
    border: 1px solid rgba(255, 112, 112, 0.36);
    background: rgba(118, 20, 31, 0.24);
}

.accountauth_notice_success {
    color: #dcffe7;
    border: 1px solid rgba(104, 238, 151, 0.32);
    background: rgba(22, 106, 54, 0.22);
}

.accountauth_error_list {
    margin: 0;
    padding-left: 20px;
}

.accountauth_form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.accountauth_field_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.accountauth_field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.accountauth_label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
}

.accountauth_input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 4, 12, 0.76);
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.accountauth_input:focus {
    border-color: rgba(255, 246, 155, 0.72);
    background: rgba(7, 8, 19, 0.92);
    box-shadow: 0 0 0 3px rgba(255, 246, 155, 0.09);
}

.accountauth_hint {
    color: rgba(255, 255, 255, 0.43);
    font-size: 11px;
    line-height: 1.6;
}

.accountauth_hint_block {
    margin-top: -8px;
}

.accountauth_submit_button {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border: 1px solid rgba(255, 246, 155, 0.82);
    border-radius: 10px;
    cursor: pointer;
    color: #11121a;
    background: linear-gradient(135deg, #fffbbb, #d6c86d);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.accountauth_submit_button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 10px 30px rgba(255, 240, 130, 0.16);
}

.accountauth_links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    font-size: 12px;
}

.accountauth_secondary_link {
    color: #fff49e;
    text-decoration: none;
}

.accountauth_secondary_link:hover {
    text-decoration: underline;
}

.accountauth_pending_link {
    color: rgba(255, 255, 255, 0.38);
}

.accountauth_link_separator {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 620px) {
    .accountauth_page {
        padding: 34px 12px 54px;
    }

    .accountauth_panel {
        padding: 24px 18px;
        border-radius: 15px;
    }

    .accountauth_brand_logo {
        width: 106px;
        height: 106px;
    }

    .accountauth_field_grid {
        grid-template-columns: 1fr;
    }
}
