/* ==========================================
   FUJI X PLAY - AUTHENTICATION
========================================== */

.fx-auth-page {

    margin: 0;

    background: #151112;

    color: #f4eee5;

    font-family:
        Arial,
        "Noto Sans JP",
        sans-serif;

}

.fx-auth-app {

    --auth-gold: #d4af60;
    --auth-gold-light: #ffe2a1;
    --auth-muted: #b29b8e;
    --auth-border: #493027;
    --auth-input: #201416;

    position: relative;

    width: 100%;

    max-width: 480px;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0 auto;

    background:
        radial-gradient(
            ellipse at top,
            rgba(130, 20, 20, .23),
            transparent 430px
        ),
        #100a0b;

    box-shadow:
        0 0 40px rgba(0, 0, 0, .3);

}

.fx-auth-app * {
    box-sizing: border-box;
}

.fx-auth-app button,
.fx-auth-app input,
.fx-auth-app select {
    font: inherit;
}

.fx-auth-app a {
    text-decoration: none;
}

.fx-auth-app [hidden] {
    display: none !important;
}


/* ==========================================
   HEADER
========================================== */

.fx-auth-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    min-height: 72px;

    padding: 10px 15px;

    border-bottom:
        1px solid rgba(212, 175, 96, .2);

    background: #140b0c;

}

.fx-auth-back {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--auth-gold);

    border-radius: 9px;

    background: #291819;

    border: 1px solid #4b3026;

}

.fx-auth-brand {

    flex: 1;

    min-width: 0;

    display: flex;

    justify-content: center;

}

.fx-auth-brand img {

    display: block;

    max-width: 175px;

    width: 100%;

    height: 48px;

    object-fit: contain;

}

.fx-auth-main {

    padding: 20px 17px 30px;

}


/* ==========================================
   INTRODUCTION
========================================== */

.fx-auth-intro {

    text-align: center;

    padding: 10px 5px 25px;

}

.fx-auth-emblem {

    width: 155px;

    height: 155px;

    object-fit: contain;

    margin-bottom: 10px;

    filter:
        drop-shadow(
            0 0 25px rgba(172, 25, 20, .25)
        );

}

.fx-auth-kicker {

    display: block;

    color: var(--auth-gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 12px;

}

.fx-auth-intro h1,
.fx-success-card h1 {

    margin: 0 0 10px;

    font-size: 29px;

    font-weight: 800;

    letter-spacing: -.6px;

    color: var(--auth-gold-light);

}

.fx-auth-intro p {

    color: var(--auth-muted);

    font-size: 13px;

    line-height: 1.7;

    margin: 0;

}

.fx-register-intro {

    padding-top: 15px;

    text-align: left;

}


/* ==========================================
   AUTHENTICATION CARD
========================================== */

.fx-auth-card {

    background: linear-gradient(
        145deg,
        #1c1113,
        #160e10
    );

    border: 1px solid #483024;

    border-radius: 18px;

    padding: 23px 18px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .18);

}

.fx-auth-form {

    display: flex;

    flex-direction: column;

    gap: 19px;

}

.fx-auth-field {

    display: flex;

    flex-direction: column;

    gap: 9px;

    min-width: 0;

}

.fx-auth-field > label,
.fx-auth-field > legend {

    font-size: 13px;

    font-weight: 700;

    color: #e4c998;

}


/* ==========================================
   INPUTS
========================================== */

.fx-auth-field input:not([type="radio"]),
.fx-auth-field select {

    display: block;

    width: 100%;

    min-width: 0;

    height: 52px;

    padding: 0 14px;

    background: var(--auth-input);

    border: 1px solid var(--auth-border);

    border-radius: 10px;

    outline: none;

    font-size: 15px;

    color: #fff5e7;

    transition:
        border-color .2s,
        box-shadow .2s;

}

.fx-auth-field input::placeholder {

    color: #84716d;

    font-size: 13px;

}

.fx-auth-field input:focus,
.fx-auth-field select:focus {

    border-color: var(--auth-gold);

    box-shadow:
        0 0 0 3px rgba(212, 175, 96, .08);

}

.fx-auth-field select {

    color-scheme: dark;

}

.fx-auth-field select option {

    background: #211719;

    color: #f3eadb;

}

.fx-auth-field input:-webkit-autofill {

    -webkit-box-shadow:
        0 0 0 1000px #201416 inset;

    -webkit-text-fill-color: #fff5e7;

}


/* ==========================================
   PASSWORD FIELD
========================================== */

.fx-password-field {

    position: relative;

}

.fx-password-field input {

    padding-right: 48px !important;

}

.fx-password-toggle {

    position: absolute;

    right: 0;

    top: 0;

    width: 48px;

    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #a88d69;

    cursor: pointer;

}

.fx-password-toggle[aria-pressed="true"] {

    color: var(--auth-gold-light);

}


/* ==========================================
   PHONE FIELD
========================================== */

.fx-phone-field {

    display: flex;

    align-items: center;

    gap: 9px;

}

.fx-dial-code {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-width: 65px;

    padding: 0 10px;

    height: 52px;

    background: #2b1c1d;

    border: 1px solid var(--auth-border);

    border-radius: 10px;

    font-size: 14px;

    color: var(--auth-gold-light);

}


/* ==========================================
   OTP FIELD
========================================== */

.fx-otp-field {

    display: flex;

    gap: 9px;

}

.fx-otp-field input {

    flex: 1;

    letter-spacing: 3px;

}

.fx-otp-button {

    flex-shrink: 0;

    min-width: 105px;

    padding: 0 12px;

    border: 1px solid #8e6733;

    border-radius: 10px;

    color: #ffe0a0;

    background: linear-gradient(
        145deg,
        #52371d,
        #302017
    );

    font-size: 12px !important;

    font-weight: 700 !important;

    cursor: pointer;

}

.fx-otp-button:disabled {

    opacity: .5;

    cursor: not-allowed;

}

.fx-auth-hint {

    font-size: 11px;

    line-height: 1.6;

    color: var(--auth-muted);

}


/* ==========================================
   FORM SECTION HEADINGS
========================================== */

.fx-auth-section-title {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-top: 8px;

    padding-bottom: 12px;

    border-bottom:
        1px solid rgba(212, 175, 96, .12);

}

.fx-auth-section-title span {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: #3c261d;

    border: 1px solid #654726;

    border-radius: 8px;

    color: var(--auth-gold);

    font-size: 12px;

    font-weight: 700;

}

.fx-auth-section-title h2 {

    font-size: 15px;

    color: var(--auth-gold-light);

    margin: 0;

}


/* ==========================================
   BINARY PLACEMENT
========================================== */

.fx-placement-field {

    padding: 0;

    margin: 0;

    border: 0;

}

.fx-placement-field legend {

    margin-bottom: 10px;

}

.fx-placement-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

}

.fx-placement-option {

    position: relative;

    cursor: pointer;

}

.fx-placement-option input {

    position: absolute;

    opacity: 0;

    width: 1px;
    height: 1px;

}

.fx-placement-card {

    min-height: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #b79c73;

    background: #211517;

    border: 1px solid #4b3429;

    border-radius: 12px;

    transition: .2s ease;

}

.fx-placement-option input:checked
+ .fx-placement-card {

    color: #ffdc8d;

    background: linear-gradient(
        145deg,
        #4a201b,
        #301818
    );

    border-color: #cba35a;

    box-shadow:
        0 0 15px rgba(212, 175, 96, .08);

}

.fx-placement-option input:focus-visible
+ .fx-placement-card {

    outline: 2px solid #d4af60;

    outline-offset: 3px;

}

.fx-placement-card strong {

    font-size: 14px;

}


/* ==========================================
   ACTION BUTTONS
========================================== */

.fx-auth-primary,
.fx-auth-secondary {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 12px 16px;

    border-radius: 10px;

    font-size: 15px !important;

    font-weight: 800 !important;

    text-align: center;

    cursor: pointer;

}

.fx-auth-primary {

    border: 1px solid #e04736;

    color: #fff4df;

    background: linear-gradient(
        135deg,
        #cf2925,
        #9b1118
    );

    box-shadow:
        0 5px 18px rgba(180, 18, 20, .2),
        inset 0 1px 0 rgba(255, 255, 255, .12);

}

.fx-auth-secondary {

    background: #211518;

    border: 1px solid #846237;

    color: var(--auth-gold-light);

}

.fx-auth-primary:disabled,
.fx-auth-secondary:disabled {

    opacity: .55;

    cursor: not-allowed;

}

.fx-auth-options {

    display: flex;

    justify-content: flex-end;

}

.fx-auth-options a {

    color: var(--auth-gold);

    font-size: 12px;

    font-weight: 600;

}


/* ==========================================
   FORM MESSAGES
========================================== */

.fx-auth-message {

    padding: 13px;

    border: 1px solid #923d36;

    background: #391b1c;

    border-radius: 9px;

    color: #ffb7ae;

    font-size: 13px;

    line-height: 1.6;

}

.fx-auth-message.is-success {

    background: #182e22;

    border-color: #3c7952;

    color: #b4e4c2;

}

.fx-auth-notice {

    color: #cbb99d;

    font-size: 12px;

    line-height: 1.7;

    background: #2b2018;

    border: 1px solid #513b24;

    border-radius: 9px;

    padding: 13px;

}


/* ==========================================
   DIVIDER
========================================== */

.fx-auth-divider {

    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0 20px;

}

.fx-auth-divider::before,
.fx-auth-divider::after {

    content: '';

    flex: 1;

    height: 1px;

    background: #453027;

}

.fx-auth-divider span {

    color: #9c8577;

    font-size: 11px;

}

.fx-auth-bottom {

    text-align: center;

}

.fx-auth-bottom p {

    margin: 0 0 15px;

    color: var(--auth-muted);

    font-size: 13px;

}


/* ==========================================
   MPIN
========================================== */

.fx-mpin-icon,
.fx-success-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 84px;
    height: 84px;

    margin: 0 auto 23px;

    background: radial-gradient(
        circle,
        #52311e,
        #241619
    );

    border: 1px solid #a67d3c;

    border-radius: 50%;

    color: #edca7c;

    box-shadow:
        0 0 25px rgba(212, 175, 96, .08);

}

.fx-auth-field input.fx-mpin-input {

    height: 70px;

    text-align: center;

    font-family: monospace;

    font-size: 29px;

    letter-spacing: 12px;

    padding-left: 24px;

    color: var(--auth-gold-light);

}

.fx-mpin-input::placeholder {

    font-size: 26px !important;

    letter-spacing: 12px;

}


/* ==========================================
   REGISTRATION SUCCESS
========================================== */

.fx-success-card {

    text-align: center;

    padding-top: 35px;

}

.fx-success-icon {

    color: #99e7b3;

    background: #1b3527;

    border-color: #427d57;

}

.fx-success-card h1 {

    font-size: 24px;

}

.fx-success-card > p {

    color: var(--auth-muted);

    line-height: 1.7;

    font-size: 14px;

}

.fx-success-userid {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin: 25px 0;

    padding: 25px 10px;

    background: #2a1c14;

    border: 1px solid #78562e;

    border-radius: 12px;

}

.fx-success-userid > span {

    font-size: 10px;

    letter-spacing: 1.5px;

    color: #bfa675;

}

.fx-success-userid strong {

    font-size: 29px;

    font-weight: 900;

    letter-spacing: 2px;

    color: #ffe0a0;

    overflow-wrap: anywhere;

}

.fx-copy-button {

    border: 1px solid #71532c;

    border-radius: 7px;

    padding: 8px 13px;

    background: #39291b;

    color: #f2d18a;

    font-size: 12px !important;

    cursor: pointer;

}

.fx-success-card .fx-auth-primary {

    margin-top: 22px;

}


/* ==========================================
   FOOTER
========================================== */

.fx-auth-footer {

    padding: 28px 10px 10px;

    text-align: center;

    color: #87776e;

    font-size: 11px;

}

.fx-auth-security {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    color: #ad9363;

    margin-bottom: 17px;

}

.fx-auth-footer p {

    margin: 0 0 10px;

}

.fx-auth-footer small {

    font-size: 8px;

    letter-spacing: 1.4px;

}


/* ==========================================
   RESPONSIVE
========================================== */

html[lang="ja"] .fx-auth-intro h1 {

    font-size: 24px;

}

@media (max-width: 360px) {

    .fx-auth-main {

        padding-left: 12px;

        padding-right: 12px;

    }

    .fx-auth-card {

        padding-left: 14px;

        padding-right: 14px;

    }

    .fx-auth-brand img {

        max-width: 135px;

    }

    .fx-auth-intro h1 {

        font-size: 25px;

    }

    .fx-auth-field input.fx-mpin-input {

        letter-spacing: 8px;

    }

}

/* ==========================================
   AUTHENTICATION UI REFINEMENTS
========================================== */

.fx-auth-header {
    min-height: 64px;
    padding: 8px 15px;
}

.fx-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx-auth-brand img {
    display: block;
    width: 100%;
    max-width: 185px;
    height: 45px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* Center original samurai logo */

.fx-auth-intro .fx-auth-emblem {
    display: block;
    width: 135px;
    height: 135px;
    margin: 0 auto 12px;
    object-fit: contain;
}

/* Reduce excessive spacing */

.fx-auth-main {
    padding: 16px 17px 25px;
}

.fx-auth-intro {
    padding: 5px 5px 20px;
}

.fx-auth-intro h1 {
    margin: 0 0 8px;
    font-size: 27px;
}

.fx-auth-intro p {
    font-size: 13px;
    line-height: 1.5;
}

.fx-auth-kicker {
    margin-bottom: 10px;
}

.fx-auth-card {
    padding: 20px 18px;
    border-color: rgba(212, 175, 96, .20);
}

.fx-auth-form {
    gap: 15px;
}

.fx-auth-field {
    gap: 7px;
}

.fx-auth-field input:not([type="radio"]),
.fx-auth-field select {
    height: 48px;
    border-color: rgba(212, 175, 96, .23);
    background: #211719;
}

.fx-auth-field input::placeholder {
    color: #9b8880;
}

.fx-dial-code {
    height: 48px;
}

.fx-auth-primary,
.fx-auth-secondary {
    min-height: 48px;
}

.fx-auth-divider {
    margin: 18px 0 15px;
}

.fx-auth-footer {
    padding-top: 20px;
}

/* Registration adjustments */

.fx-register-intro {
    padding-top: 12px;
    padding-bottom: 18px;
}

.fx-register-intro h1 {
    font-size: 28px;
}

.fx-auth-section-title {
    padding-top: 5px;
    padding-bottom: 10px;
}

.fx-placement-card {
    min-height: 85px;
}

@media (max-width: 360px) {

    .fx-auth-intro .fx-auth-emblem {
        width: 115px;
        height: 115px;
    }

    .fx-auth-brand img {
        max-width: 140px;
    }

    .fx-auth-card {
        padding: 17px 14px;
    }
}

.fx-auth-intro .fx-auth-emblem {
    display: block;
    width: 135px;
    height: 135px;
    margin: 0 auto 12px;
    object-fit: contain;
}

/* Registration legal links */

.fx-registration-legal {
    margin: 18px 0;
    padding: 0 12px;
    text-align: center;
    font-size: 11px;
    line-height: 1.9;
    color: #b9a394;
}

.fx-registration-legal p {
    margin: 0 0 6px;
}

.fx-registration-legal a {
    color: #d7b16b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fx-registration-legal span {
    margin: 0 5px;
}

/* ==========================================
   REGISTRATION LIVE VALIDATION
========================================== */

.fx-field-validation {

    display: block;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.6;

    overflow-wrap: anywhere;

}

.fx-field-validation:empty {

    display: none;

}

.fx-field-validation.is-valid {

    color: #72db9a;

}

.fx-field-validation.is-invalid {

    color: #ff8585;

}

.fx-field-validation.is-checking {

    color: #d4af60;

}

.fx-field-validation.is-warning {

    color: #f0c36a;

}


/* Valid input */

.fx-auth-field input.is-valid {

    border-color: #438b60 !important;

    box-shadow:
        0 0 0 3px rgba(67, 139, 96, .09);

}


/* Invalid input */

.fx-auth-field input.is-invalid {

    border-color: #e26363 !important;

    box-shadow:
        0 0 0 3px rgba(226, 99, 99, .10);

}


/* Pending / warning */

.fx-auth-field input.is-warning {

    border-color: #c79b45 !important;

}


/* ==========================================
   PROMINENT FORM MESSAGES
========================================== */

.fx-auth-message {

    position: relative;

    padding: 16px 14px 16px 17px;

    border: 1px solid #c75050;

    border-left: 4px solid #ff7474;

    border-radius: 10px;

    background: #3b191c;

    color: #ffd0cd;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.65;

    overflow-wrap: anywhere;

    scroll-margin-top: 100px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .18);

}

.fx-auth-message:focus {

    outline: 2px solid #e26363;

    outline-offset: 3px;

}

.fx-auth-message.is-success {

    background: #182e22;

    border-color: #438b60;

    border-left-color: #72db9a;

    color: #b9f4ce;

}


/* ==========================================
   EMAIL VERIFICATION
========================================== */

.fx-verification-email {

    display: block;

    margin-top: 8px;

    color: #ffe2a1;

    font-size: 15px;

    font-weight: 700;

    overflow-wrap: anywhere;

}

.fx-auth-field input.fx-verification-otp {

    height: 68px;

    text-align: center;

    font-family: monospace;

    font-size: 30px;

    font-weight: 700;

    letter-spacing: 8px;

    padding-left: 22px;

    color: #ffe2a1;

}

.fx-verification-otp::placeholder {

    color: #77634e !important;

    font-size: 27px !important;

    letter-spacing: 8px;

}

.fx-resend-section {

    display: flex;

    flex-direction: column;

    gap: 12px;

    text-align: center;

}

.fx-resend-section p {

    margin: 0;

    font-size: 13px;

    color: #b29b8e;

}

.fx-resend-section button {

    width: 100%;

    cursor: pointer;

}

.fx-resend-section button:disabled {

    opacity: .5;

    cursor: not-allowed;

}

/* ======================================
   REGISTRATION CAPTCHA
====================================== */

.fx-registration-captcha {

    width: 100%;

    min-height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.fx-registration-captcha .cf-turnstile {

    width: 100%;

}

.fx-registration-notice {

    display: block;

    text-align: center;

    font-size: 12px;

    line-height: 1.7;

    color: #b29b8e;

}

/* ==========================================
   FIX BROWSER AUTOFILL STYLING
========================================== */

.fx-auth-form input:-webkit-autofill,
.fx-auth-form input:-webkit-autofill:hover,
.fx-auth-form input:-webkit-autofill:focus,
.fx-auth-form input:-webkit-autofill:active {

    -webkit-box-shadow:
        0 0 0 1000px #201416 inset !important;

    -webkit-text-fill-color: #ffe2a1 !important;

    caret-color: #ffe2a1 !important;

    transition: background-color 9999s ease-in-out 0s;
}

.fx-auth-form input:autofill {

    box-shadow:
        0 0 0 1000px #201416 inset !important;

    color: #ffe2a1 !important;
}