/* member_app auth pages (login / register / OTP / password reset) */

body.auth-body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
    margin: 0;
    background: #f5f7fb;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
}

/* ---- left brand panel ---- */
.auth-brand {
    width: 42%;
    max-width: 560px;
    color: #fff;
    background: linear-gradient(160deg, #0a2342 0%, #0d47a1 55%, #1565d8 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.25rem;
    position: relative;
    overflow: hidden;
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand::before {
    width: 420px;
    height: 420px;
    bottom: -140px;
    right: -140px;
}

.auth-brand::after {
    width: 240px;
    height: 240px;
    top: -80px;
    left: -80px;
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
}

.auth-logo img {
    width: 32px;
    height: 32px;
}

.auth-app-name-block {
    display: flex;
    flex-direction: column;
    margin-left: 0.75rem;
    line-height: 1.3;
}

.auth-app-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.auth-app-tagline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

.auth-brand-main h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-foot {
    font-size: 0.85rem;
}

.auth-brand-foot a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.auth-brand-foot a:hover {
    color: #fff;
}

.auth-brand-foot a i {
    font-size: 0.7rem;
}

.auth-brand-link {
    color: inherit;
    text-decoration: none;
}

.auth-brand-link:hover {
    color: inherit;
    opacity: 0.85;
}

/* ---- right form side ---- */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    position: relative;
}

/* ---- language switcher ---- */
.lang-switch {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.06);
    z-index: 10;
}

.lang-switch i {
    color: #8090a5;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.lang-switch button {
    border: none;
    background: transparent;
    color: #6b7a90;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}

.lang-switch button.active {
    background: #1565d8;
    color: #fff;
}

.auth-card-holder {
    width: 100%;
    max-width: 480px;
}

.auth-card-holder.wide {
    max-width: 700px;
}

.auth-brand-mobile {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0d47a1;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.auth-brand-mobile img {
    width: 28px;
    height: 28px;
    vertical-align: -6px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.08);
    padding: 1.75rem 2rem 1.5rem;
}

.auth-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #17223b;
    margin-bottom: 0.25rem;
}

.auth-sub {
    color: #6b7a90;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #33415c;
}

.auth-card .form-control {
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    background: #f7f9fc;
    border-color: #e3e9f2;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .form-control:hover {
    border-color: #c9d6e8;
}

.auth-card .form-control:focus {
    background: #fff;
    border-color: #1565d8;
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 216, 0.12);
}

.auth-card input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f7f9fc inset;
}

.auth-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* ---- icon next to field labels ---- */
.auth-card .form-label i,
.auth-card .col-form-label i {
    color: #8090a5;
    font-size: 0.85rem;
    width: 1.2rem;
    text-align: center;
    display: inline-block;
    margin-right: 0.2rem;
}

.field-help {
    font-size: 0.8rem;
    color: #8090a5;
    margin-top: 0.3rem;
}

.field-error {
    font-size: 0.82rem;
    color: #d32f2f;
    margin-top: 0.3rem;
}

.auth-btn {
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7a90;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* ---- step indicator ---- */
.steps {
    display: flex;
    margin-bottom: 1.25rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #dbe3ef;
}

.step.done:not(:first-child)::before,
.step.current:not(:first-child)::before {
    background: #1565d8;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2f8;
    color: #8090a5;
    border: 2px solid #dbe3ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step.current .step-dot {
    background: #1565d8;
    border-color: #1565d8;
    color: #fff;
}

.step.done .step-dot {
    background: #e8f0fe;
    border-color: #1565d8;
    color: #1565d8;
}

.step-label {
    display: block;
    font-size: 0.75rem;
    color: #8090a5;
    margin-top: 0.35rem;
}

.step.current .step-label {
    color: #1565d8;
    font-weight: 700;
}

/* ---- info / notice boxes ---- */
.info-box {
    display: flex;
    gap: 0.75rem;
    background: #eef5ff;
    border: 1px solid #cfe1fb;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #33415c;
}

.info-box i {
    color: #1565d8;
    margin-top: 0.15rem;
}

.sent-box {
    background: #f0f7f0;
    border: 1px solid #cde5cf;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #2e5934;
    text-align: center;
}

.sent-box i {
    color: #2e7d32;
    margin-right: 0.4rem;
}

.help-box {
    background: #fbf7ee;
    border: 1px solid #eddfbf;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: #5c4d33;
}

.help-box .help-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.help-box ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}

/* ---- OTP input ---- */
.otp-input {
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.55em;
    padding-left: 0.55em;
}

/* ---- password checklist ---- */
.password-checklist {
    list-style: none;
    padding: 0.35rem 0 0;
    margin: 0;
    font-size: 0.8rem;
    color: #8090a5;
}

.password-checklist li {
    margin-top: 0.2rem;
}

.password-checklist li i {
    width: 1.1rem;
}

.password-checklist li.ok {
    color: #2e7d32;
}

/* ---- password field with in-input eye toggle ---- */
.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 2.7rem;
}

.password-wrap .form-control.is-invalid,
.password-wrap .form-control.is-valid {
    background-image: none;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    border: 0;
    background: none;
    padding: 0.25rem;
    color: #9aa7b8;
    cursor: pointer;
    line-height: 1;
}

.toggle-password:hover {
    color: #33415c;
}

@media (max-width: 575px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
}
