
/* ==========================================
   PAYREN AUTHENTICATION
========================================== */

.auth-app {

    width: 100%;
    max-width: 780px;

    min-height: 100vh;

    margin: 0 auto;

    background: #101114;

}

.auth-header {

    height: 60px;

    display: grid;

    grid-template-columns: 50px 1fr 50px;

    align-items: center;

    padding: 0 18px;

    background: #1b1e24;

    font-size: 16px;

    text-align: center;

    border-bottom: 1px solid rgba(255,255,255,.06);

}

.auth-back {

    text-align: left;

    font-size: 32px;

    color: #fff;

    line-height: 1;

}

.auth-content {

    width: 100%;
    max-width: 440px;

    margin: 0 auto;

    padding: 40px 22px;

}

.auth-brand {

    text-align: center;

    margin-bottom: 36px;

}

.auth-brand img {

    width: 85px;
    height: 85px;

    object-fit: contain;

    border-radius: 20px;

    margin-bottom: 15px;

}

.auth-brand h1 {

    margin: 0 0 10px;

    font-size: 27px;

    font-weight: 800;

    color: #fff;

}

.auth-brand p {

    margin: 0;

    font-size: 12px;

    color: #9ea4af;

}

.auth-form {

    display: flex;

    flex-direction: column;

    gap: 23px;

}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 10px;

}

.form-group label {

    font-size: 12px;

    color: #e4e6ea;

    font-weight: 600;

}

.input-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    min-height: 53px;

    background: #1b1e24;

    border: 1px solid #343943;

    border-radius: 12px;

    transition: border-color .2s;

}

.input-wrapper:focus-within {

    border-color: #e4be69;

}

.input-icon {

    width: 45px;

    text-align: center;

    font-size: 19px;

    color: #e4be69;

}

.input-wrapper input {

    flex: 1;

    width: 100%;
    min-width: 0;

    height: 52px;

    padding: 0 12px 0 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #fff;

    font-size: 13px;

}

.input-wrapper input::placeholder {

    color: #747b86;

}

.password-label {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.password-label a {

    color: #e4be69;

    font-size: 11px;

}

.password-toggle {

    padding: 8px 12px;

    border: 0;

    background: transparent;

    color: #e4be69;

    font-size: 11px;

    font-weight: 700;

}

.auth-submit {

    width: 100%;

    height: 52px;

    margin-top: 6px;

    border: 0;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #f5d992,
        #d9a94c
    );

    color: #171717;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

}

.auth-submit:hover {

    filter: brightness(1.07);

}

.auth-error {

    padding: 14px;

    margin-bottom: 25px;

    border: 1px solid rgba(255,92,92,.30);

    border-radius: 10px;

    background: rgba(255,92,92,.08);

    color: #ff9999;

    font-size: 12px;

    line-height: 1.6;

}

.auth-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 35px 0 23px;

    color: #7e8591;

    font-size: 10px;

    letter-spacing: 1px;

}

.auth-divider::before,
.auth-divider::after {

    content: '';

    flex: 1;

    height: 1px;

    background: #343943;

}

.auth-register {

    display: flex;

    align-items: center;
    justify-content: center;

    height: 50px;

    border: 1px solid #e4be69;

    border-radius: 12px;

    color: #e4be69;

    font-size: 13px;

    font-weight: 700;

}

.auth-footer {

    margin-top: 30px;

    text-align: center;

    color: #7e8591;

    font-size: 11px;

    line-height: 1.8;

}

.auth-footer a {

    color: #e4be69;

}

@media(max-width: 420px) {

    .auth-content {

        padding: 32px 19px;

    }

    .auth-brand {

        margin-bottom: 30px;

    }

}
/* =========================================================
   NEXTRADE FX — AUTHENTICATION
   ========================================================= */

.auth-app {
    width: 100%;
    max-width: 780px;
    min-height: 100vh;
    margin: 0 auto;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(228, 190, 105, 0.08),
            transparent 340px
        ),
        #101114;

    border-left: 1px solid rgba(255,255,255,.035);
    border-right: 1px solid rgba(255,255,255,.035);
}


/* =========================================================
   HEADER
   ========================================================= */

.auth-header {
    height: 64px;

    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;

    padding: 0 22px;

    background: rgba(27, 30, 36, 0.94);

    border-bottom: 1px solid rgba(255,255,255,.07);

    color: #f5f5f6;

    font-size: 15px;
    font-weight: 600;

    text-align: center;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.auth-back {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #f5f5f6;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.auth-back:hover {
    background: rgba(255,255,255,.055);
    color: #e4be69;
    transform: translateX(-2px);
}


/* =========================================================
   CONTENT
   ========================================================= */

.auth-content {
    width: 100%;
    max-width: 470px;

    margin: 0 auto;

    padding:
        42px
        22px
        calc(40px + env(safe-area-inset-bottom));
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-brand {
    text-align: center;

    margin-bottom: 34px;
}

.auth-brand img {
    display: block;

    width: 82px;
    height: 82px;

    margin: 0 auto 20px;

    padding: 4px;

    object-fit: contain;

    border-radius: 21px;

    background: #0d0e11;

    border: 1px solid rgba(228,190,105,.16);

    box-shadow:
        0 15px 35px rgba(0,0,0,.30),
        0 0 0 5px rgba(228,190,105,.025);
}

.auth-brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -.6px;
    line-height: 1.15;
}

.auth-brand p {
    max-width: 330px;

    margin: 11px auto 0;

    color: #9097a3;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 21px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.form-group label {
    color: #e6e7ea;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   PASSWORD LABEL
   ========================================================= */

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.password-label a {
    color: #e4be69;

    font-size: 11px;
    font-weight: 600;

    transition: color .2s ease;
}

.password-label a:hover {
    color: #f4d894;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 56px;

    overflow: hidden;

    background: #181b20;

    border: 1px solid #30343d;
    border-radius: 13px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.018);

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.input-wrapper:hover {
    border-color: #404550;
}

.input-wrapper:focus-within {
    background: #1b1e24;

    border-color: rgba(228,190,105,.85);

    box-shadow:
        0 0 0 3px rgba(228,190,105,.08),
        0 8px 25px rgba(0,0,0,.16);
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.input-icon {
    width: 50px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 50px;

    color: #e4be69;

    font-size: 17px;

    border-right: 1px solid rgba(255,255,255,.055);

    background: rgba(255,255,255,.018);
}


/* =========================================================
   INPUT FIELD
   ========================================================= */

.input-wrapper input {
    flex: 1;

    width: 100%;
    min-width: 0;
    height: 55px;

    padding: 0 16px;

    border: 0;
    outline: 0;

    background: transparent !important;

    color: #f5f5f6;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    box-shadow: none !important;
}

.input-wrapper input::placeholder {
    color: #707783;
    opacity: 1;
}


/* Chrome autofill */

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f5f6;

    -webkit-box-shadow:
        0 0 0 1000px #181b20 inset !important;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
    height: 55px;

    padding: 0 16px;

    flex-shrink: 0;

    border: 0;
    border-left: 1px solid rgba(255,255,255,.055);

    background: rgba(255,255,255,.018);

    color: #e4be69;

    font-size: 11px;
    font-weight: 800;

    transition:
        background .2s ease,
        color .2s ease;
}

.password-toggle:hover {
    background: rgba(228,190,105,.08);
    color: #f4d894;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.auth-submit {
    position: relative;

    width: 100%;
    height: 56px;

    margin-top: 5px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #f3d58b 0%,
            #e4be69 52%,
            #cfa144 100%
        );

    color: #121315;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: .1px;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(213,168,74,.14),
        inset 0 1px 0 rgba(255,255,255,.32);

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;
}

.auth-submit:hover {
    filter: brightness(1.055);

    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(213,168,74,.20),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.auth-submit:active {
    transform: translateY(0);
}


/* =========================================================
   ERROR
   ========================================================= */

.auth-error {
    padding: 14px 16px;

    margin-bottom: 24px;

    border: 1px solid rgba(255,92,92,.26);
    border-radius: 12px;

    background: rgba(255,92,92,.07);

    color: #ffaaaa;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 32px 0 21px;

    color: #777e89;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.2px;

    white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
    content: '';

    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #343943
        );
}

.auth-divider::after {
    background:
        linear-gradient(
            90deg,
            #343943,
            transparent
        );
}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.auth-register {
    width: 100%;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(228,190,105,.72);
    border-radius: 13px;

    background: rgba(228,190,105,.025);

    color: #e4be69;

    font-size: 13px;
    font-weight: 700;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.auth-register:hover {
    background: rgba(228,190,105,.08);

    border-color: #e4be69;

    color: #f4d894;

    transform: translateY(-1px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    margin: 27px auto 0;

    max-width: 370px;

    text-align: center;

    color: #777e89;

    font-size: 10px;
    line-height: 1.8;
}

.auth-footer a {
    color: #b8bdc6;

    transition: color .2s ease;
}

.auth-footer a:hover {
    color: #e4be69;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 850px) {

    .auth-app {
        min-height: calc(100vh - 32px);

        margin-top: 16px;
        margin-bottom: 16px;

        border: 1px solid rgba(255,255,255,.07);
        border-radius: 22px;

        overflow: hidden;

        box-shadow:
            0 30px 90px rgba(0,0,0,.38);
    }

    .auth-content {
        padding-top: 38px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .auth-app {
        border: 0;
    }

    .auth-header {
        height: 58px;

        padding:
            env(safe-area-inset-top)
            15px
            0;

        grid-template-columns: 42px 1fr 42px;
    }

    .auth-content {
        max-width: 100%;

        padding:
            31px
            18px
            calc(35px + env(safe-area-inset-bottom));
    }

    .auth-brand {
        margin-bottom: 29px;
    }

    .auth-brand img {
        width: 74px;
        height: 74px;

        margin-bottom: 17px;

        border-radius: 19px;
    }

    .auth-brand h1 {
        font-size: 26px;
    }

    .auth-brand p {
        font-size: 12px;
    }

    .input-wrapper {
        min-height: 54px;
    }

    .input-icon {
        width: 47px;
        height: 54px;

        flex-basis: 47px;
    }

    .input-wrapper input,
    .password-toggle {
        height: 53px;
    }

    .auth-submit {
        height: 54px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .auth-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-brand h1 {
        font-size: 24px;
    }

    .input-wrapper input {
        padding-left: 12px;
        padding-right: 12px;

        font-size: 13px;
    }

    .password-toggle {
        padding-left: 11px;
        padding-right: 11px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-back,
    .input-wrapper,
    .password-toggle,
    .auth-submit,
    .auth-register {
        transition: none;
    }

}