/* =========================================================
   MSTORE AUTH 2026
   MINIMAL LIGHT GLASS
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #e97822;
    --accent-2: #ffad68;
    --accent-soft: rgba(233, 120, 34, .10);

    --bg: #f5f6f8;

    --text: #17181c;
    --muted: #8a8d95;
    --muted-2: #a9acb3;

    --glass: rgba(255, 255, 255, .64);
    --glass-strong: rgba(255, 255, 255, .82);

    --line: rgba(20, 22, 28, .075);

    --success: #20aa78;
    --danger: #df5d5d;

    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 15px;

    --shadow:
        0 40px 100px rgba(27, 29, 36, .10),
        0 10px 35px rgba(27, 29, 36, .055);
}


/* =========================================================
   BASE
========================================================= */

html {
    min-height: 100%;
}

body,
input,
button,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "tanha";
}

@font-face {
  font-family: "tanha";
  src:
    url("../../../tanha-font-v0.9/Tanha.woff2") format("woff2"),
    url("../../../tanha-font-v0.9/Tanha.woff") format("woff"),
    url("../../../tanha-font-v0.9/Tanha.eot") format("eot"),
    url("../../../tanha-font-v0.9/Tanha.ttf") format("truetype");
}
body {
    min-height: 100vh;

    direction: rtl;


    color: var(--text);

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(255, 182, 121, .20),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 82%,
            rgba(255, 222, 195, .34),
            transparent 30%
        ),
        #f5f6f8;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font-family: inherit;
}


/* =========================================================
   BACKGROUND
========================================================= */

.page-background {
    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;
}

.bg-light {
    position: absolute;

    width: 560px;
    height: 560px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 177, 111, .18),
            rgba(255, 177, 111, .04) 45%,
            transparent 72%
        );

    filter: blur(35px);

    top: -260px;
    right: -170px;

    animation:
        lightMove 14s ease-in-out infinite alternate;
}

.bg-light-2 {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 214, 180, .25),
            transparent 70%
        );

    filter: blur(45px);

    bottom: -220px;
    left: -150px;

    animation:
        lightMove2 16s ease-in-out infinite alternate;
}

@keyframes lightMove {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-45px, 35px, 0);
    }
}

@keyframes lightMove2 {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(40px, -30px, 0);
    }
}


/* =========================================================
   PAGE
========================================================= */

.auth-page {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}


/* =========================================================
   MAIN GLASS
========================================================= */

.auth-container {
    position: relative;

    width: min(1080px, 100%);

    min-height: 650px;

    display: grid;

    grid-template-columns: .93fr 1.07fr;

    direction: ltr;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .86);

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.72),
            rgba(255,255,255,.52)
        );

    box-shadow: var(--shadow);

    backdrop-filter:
        blur(28px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(135%);

    animation:
        containerIn
        .8s cubic-bezier(.16,1,.3,1)
        both;
}

.auth-container::before {
    content: "";

    position: absolute;

    inset: 1px;

    pointer-events: none;

    border-radius: inherit;

    border:
        1px solid
        rgba(255,255,255,.48);

    background:
        linear-gradient(
            125deg,
            rgba(255,255,255,.25),
            transparent 35%
        );

    z-index: 10;
}

@keyframes containerIn {
    from {
        opacity: 0;

        transform:
            translateY(24px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   LEFT BRAND / EXPERIENCE PANEL
========================================================= */

.experience-panel {
    position: relative;

    direction: rtl;

    overflow: hidden;

    min-height: 650px;

    padding: 38px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-left:
        1px solid
        rgba(25, 27, 33, .055);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.68),
            rgba(255,248,243,.42)
        );
}


/* =========================================================
   TOP BRAND
========================================================= */

.brand {
    position: relative;

    z-index: 3;

    display: flex;
    align-items: center;

    gap: 11px;
}

.brand-logo {
    width: 41px;
    height: 41px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #ffb875,
            var(--accent)
        );

    box-shadow:
        0 12px 28px
        rgba(233,120,34,.20);
}

.brand-logo i {
    font-size: 14px;
}

.brand-name {
    font-size: 17px;

    font-weight: 900;

    letter-spacing: 2px;
}


/* =========================================================
   EXPERIENCE CONTENT
========================================================= */

.experience-content {
    position: relative;

    z-index: 3;

    margin-top: auto;
    margin-bottom: auto;

    padding: 25px 0;
}

.experience-label {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    margin-bottom: 17px;

    color: var(--accent);

    font-size: 9px;

    font-weight: 900;
}

.experience-label::before {
    content: "";

    width: 20px;
    height: 2px;

    border-radius: 20px;

    background: var(--accent);
}

.experience-content h2 {
    max-width: 390px;

    color: #191a1e;

    font-size: 31px;

    line-height: 1.65;

    font-weight: 900;

    letter-spacing: -.8px;
}

.experience-content h2 span {
    color: var(--accent);
}

.experience-content p {
    max-width: 355px;

    margin-top: 14px;

    color: var(--muted);

    font-size: 11px;

    line-height: 2.15;
}


/* =========================================================
   MINI BENEFITS
========================================================= */

.experience-benefits {
    display: flex;

    gap: 9px;

    margin-top: 27px;
}

.experience-benefit {
    min-width: 105px;

    padding: 12px 13px;

    border:
        1px solid
        rgba(255,255,255,.82);

    border-radius: 14px;

    background:
        rgba(255,255,255,.46);

    box-shadow:
        0 8px 25px
        rgba(35,35,40,.035);

    backdrop-filter: blur(12px);

    transition:
        transform .3s ease,
        background .3s ease;
}

.experience-benefit:hover {
    transform: translateY(-3px);

    background:
        rgba(255,255,255,.72);
}

.experience-benefit i {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);

    font-size: 12px;
}

.experience-benefit strong {
    display: block;

    color: #383a40;

    font-size: 9px;
}

.experience-benefit span {
    display: block;

    margin-top: 4px;

    color: #a2a5ac;

    font-size: 7px;
}


/* =========================================================
   ABSTRACT GLASS OBJECT
========================================================= */

.glass-object {
    position: absolute;

    z-index: 1;

    width: 250px;
    height: 250px;

    left: 50%;

    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-12deg);

    border:
        1px solid
        rgba(255,255,255,.72);

    border-radius: 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.40),
            rgba(255,220,194,.12)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 30px 70px rgba(50,40,35,.055);

    backdrop-filter:
        blur(15px);

    animation:
        glassFloat
        7s
        ease-in-out
        infinite;
}

.glass-object::before {
    content: "";

    position: absolute;

    width: 105px;
    height: 105px;

    top: 35px;
    right: 30px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255,178,111,.30),
            rgba(233,120,34,.05)
        );

    filter: blur(2px);
}

.glass-object::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 45px;

    bottom: 35px;
    left: 35px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.6);

    transform: rotate(-12deg);
}

@keyframes glassFloat {
    0%, 100% {
        transform:
            translate(-50%, -50%)
            rotate(-12deg);
    }

    50% {
        transform:
            translate(-50%, calc(-50% - 10px))
            rotate(-7deg);
    }
}


/* =========================================================
   BOTTOM
========================================================= */

.experience-bottom {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #a2a5ac;

    font-size: 8px;
}

.experience-bottom strong {
    color: #777a82;

    font-size: 8px;

    letter-spacing: .8px;
}

.experience-bottom span {
    display: flex;

    align-items: center;

    gap: 6px;
}

.experience-bottom i {
    color: var(--accent);

    font-size: 7px;
}


/* =========================================================
   FORM PANEL
========================================================= */

.form-panel {
    position: relative;

    direction: rtl;

    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,.36);
}

.auth-form {
    width: 100%;

    max-width: 430px;

    padding:
        48px 55px;

    animation:
        formIn
        .55s cubic-bezier(.16,1,.3,1)
        both;
}

@keyframes formIn {
    from {
        opacity: 0;

        transform:
            translateX(18px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-bottom: 27px;
}

.mobile-brand .brand-logo {
    width: 38px;
    height: 38px;
}

.mobile-brand span {
    font-size: 16px;

    font-weight: 900;

    letter-spacing: 1.5px;
}


/* =========================================================
   FORM HEADER
========================================================= */

.auth-header {
    margin-bottom: 29px;
}

.form-kicker {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);

    font-size: 9px;

    font-weight: 900;
}

.auth-header h1 {
    color: #191a1e;

    font-size: 27px;

    line-height: 1.6;

    font-weight: 900;

    letter-spacing: -.5px;
}

.auth-header p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.9;
}


/* =========================================================
   INPUT
========================================================= */

.input-group {
    margin-bottom: 17px;
}

.input-group label {
    display: block;

    margin-bottom: 7px;

    color: #555860;

    font-size: 9px;

    font-weight: 800;
}

.input-group label small {
    margin-right: 4px;

    color: #b0b3ba;

    font-size: 7px;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;

    height: 52px;

    padding:
        0 46px
        0 44px;

    outline: none;

    border:
        1px solid
        rgba(30,32,38,.075);

    border-radius: var(--radius-md);

    color: #292b31;

    background:
        rgba(255,255,255,.55);

    font-size: 10px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65);

    backdrop-filter:
        blur(12px);

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.input-box input::placeholder {
    color: #b7bac1;
}

.input-box input:hover {
    background:
        rgba(255,255,255,.75);

    border-color:
        rgba(30,32,38,.12);
}

.input-box input:focus {
    border-color:
        rgba(233,120,34,.42);

    background:
        rgba(255,255,255,.84);

    box-shadow:
        0 0 0 4px
        rgba(233,120,34,.055),
        0 12px 30px
        rgba(30,32,38,.045);
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
    position: absolute;

    z-index: 2;

    right: 16px;

    top: 50%;

    width: 18px;

    color: #a7aab1;

    font-size: 12px;

    transform:
        translateY(-50%);

    transition:
        color .25s ease,
        transform .25s ease;
}

.input-box:focus-within .input-icon {
    color: var(--accent);

    transform:
        translateY(-50%)
        scale(1.08);
}


/* =========================================================
   INPUT GLASS HIGHLIGHT
========================================================= */

.input-box::after {
    content: "";

    position: absolute;

    pointer-events: none;

    left: 15px;
    right: 15px;

    top: 1px;

    height: 1px;

    border-radius: 50%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.95),
            transparent
        );

    opacity: .7;
}


/* =========================================================
   PASSWORD
========================================================= */

.show-password {
    position: absolute;

    z-index: 3;

    left: 9px;

    top: 50%;

    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 9px;

    color: #a3a6ad;

    background: transparent;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        .2s ease;
}

.show-password:hover {
    color: var(--accent);

    background:
        rgba(233,120,34,.07);
}

.show-password:active {
    transform:
        translateY(-50%)
        scale(.91);
}


/* =========================================================
   BUTTON
========================================================= */

.auth-button {
    position: relative;

    width: 100%;

    height: 53px;

    margin-top: 6px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.5);

    border-radius: var(--radius-md);

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #ffb36d,
            #e97822
        );

    box-shadow:
        0 15px 30px
        rgba(233,120,34,.18);

    font-size: 10px;

    font-weight: 900;

    cursor: pointer;

    transition:
        transform .25s cubic-bezier(.16,1,.3,1),
        box-shadow .25s ease;
}

.auth-button::before {
    content: "";

    position: absolute;

    width: 80px;
    height: 180%;

    top: -40%;

    right: -120px;

    transform: rotate(20deg);

    background:
        rgba(255,255,255,.22);

    filter: blur(7px);

    transition:
        right .65s ease;
}

.auth-button:hover::before {
    right: 120%;
}

.auth-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 20px 38px
        rgba(233,120,34,.24);
}

.auth-button:active {
    transform:
        translateY(0)
        scale(.99);
}

.auth-button i {
    font-size: 9px;

    transition:
        transform .25s ease;
}

.auth-button:hover i {
    transform:
        translateX(-4px);
}

.auth-button:disabled {
    opacity: .6;

    cursor: wait;

    transform: none;
}


/* =========================================================
   MESSAGE
========================================================= */

.form-message {
    min-height: 20px;

    margin-top: 9px;

    padding: 0 3px;

    text-align: center;

    font-size: 8px;

    line-height: 1.8;
}

.form-message.error {
    color: var(--danger);
}

.form-message.success {
    color: var(--success);
}


/* =========================================================
   SWITCH
========================================================= */

.auth-switch {
    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(30,32,38,.065);

    text-align: center;

    color: #999ca3;

    font-size: 8px;
}

.auth-switch button {
    margin-right: 5px;

    padding: 0;

    border: 0;

    color: var(--accent);

    background: transparent;

    font-family: inherit;

    font-size: 8px;

    font-weight: 900;

    cursor: pointer;

    transition:
        color .2s ease;
}

.auth-switch button:hover {
    color: #c45c0c;
}

.auth-switch button i {
    margin-right: 3px;

    font-size: 7px;

    transition:
        transform .2s ease;
}

.auth-switch button:hover i {
    transform:
        translateX(-3px);
}


/* =========================================================
   REGISTER
========================================================= */

.register-form {
    display: none;
}

.auth-container.show-register .login-form {
    display: none;
}

.auth-container.show-register .register-form {
    display: block;
}

.register-form .auth-header {
    margin-bottom: 22px;
}

.register-form .input-group {
    margin-bottom: 11px;
}

.register-form .input-box input {
    height: 46px;
}

.register-form .auth-button {
    height: 50px;
}


/* =========================================================
   DESKTOP DECOR
========================================================= */

.experience-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: -250px;
    bottom: -250px;

    border-radius: 50%;

    border:
        1px solid
        rgba(233,120,34,.08);
}

.experience-panel::after {
    content: "";

    position: absolute;

    width: 1px;
    height: 180px;

    top: 40%;
    right: 28px;

    background:
        linear-gradient(
            transparent,
            rgba(233,120,34,.14),
            transparent
        );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .auth-page {
        padding: 20px;
    }

    .auth-container {
        max-width: 620px;

        grid-template-columns: 1fr;
    }

    .experience-panel {
        display: none;
    }

    .form-panel {
        min-height: 630px;
    }

    .mobile-brand {
        display: flex;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    body {
        background:
            radial-gradient(
                circle at 20% 0%,
                rgba(255,185,130,.18),
                transparent 35%
            ),
            #f5f6f8;
    }

    .auth-page {
        min-height: 100dvh;

        align-items: flex-start;

        padding: 12px;
    }

    .auth-container {
        width: 100%;

        margin-top: 6px;

        min-height: auto;

        border-radius: 25px;
    }

    .form-panel {
        min-height: auto;
    }

    .auth-form {
        padding:
            31px 21px;
    }

    .mobile-brand {
        margin-bottom: 25px;
    }

    .auth-header {
        margin-bottom: 25px;
    }

    .auth-header h1 {
        font-size: 23px;
    }

    .auth-header p {
        font-size: 9px;
    }

    .name-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .input-box input {
        height: 52px;
    }

    .register-form .input-box input {
        height: 51px;
    }

    .register-form .input-group {
        margin-bottom: 12px;
    }

    .auth-button {
        height: 53px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .auth-form {
        padding:
            27px 16px;
    }

    .auth-header h1 {
        font-size: 21px;
    }

    .auth-switch {
        font-size: 7px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}