/* =========================================================
   TRADE LOGIN
========================================================= */

:root {
    --trade-orange: #f97316;
    --trade-orange-dark: #ea580c;
    --trade-orange-deep: #c2410c;

    --trade-orange-light: #ffedd5;
    --trade-orange-soft: #fff7ed;

    --trade-dark: #1c1917;
    --trade-heading: #292524;

    --trade-text: #57534e;
    --trade-muted: #78716c;

    --trade-border: #e7e1da;

    --trade-white: #ffffff;

    --trade-shadow:
        0 28px 70px
        rgba(68, 43, 23, 0.13);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    color: var(--trade-text);

    background: #fffaf5;

    font-family:
        "Source Sans 3",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 15px;

    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;

    text-decoration: none;
}


/* =========================================================
   PAGE
========================================================= */

.trade-login__page {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(249, 115, 22, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 88%,
            rgba(194, 65, 12, 0.09),
            transparent 32%
        ),
        #fffaf5;
}


/* Background decorations */

.trade-login__glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.trade-login__glow--one {
    width: 430px;
    height: 430px;

    top: -220px;
    right: 16%;

    border:
        90px solid
        rgba(249, 115, 22, 0.05);
}

.trade-login__glow--two {
    width: 340px;
    height: 340px;

    left: -180px;
    bottom: -170px;

    background:
        rgba(249, 115, 22, 0.045);
}


/* =========================================================
   LAYOUT
========================================================= */

.trade-login__layout {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(440px, 0.95fr)
        minmax(520px, 1.05fr);
}


/* =========================================================
   LEFT / WELCOME
========================================================= */

.trade-login__welcome {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    padding:
        clamp(38px, 5vw, 75px)
        clamp(38px, 6vw, 95px);

    overflow: hidden;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #431407 0%,
            #9a3412 38%,
            #ea580c 72%,
            #f97316 100%
        );
}

.trade-login__welcome::before {
    content: "";

    position: absolute;

    width: 440px;
    height: 440px;

    top: -240px;
    right: -190px;

    border:
        90px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}

.trade-login__welcome::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -120px;
    bottom: 70px;

    background:
        rgba(255, 255, 255, 0.04);

    border-radius: 50%;
}


/* Brand */

.trade-login__brand {
    position: relative;
    z-index: 3;

    width: fit-content;

    display: inline-flex;

    padding: 15px 20px;

    background: #fff;

    border-radius: 14px;

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.12);
}

.trade-login__brand img {
    display: block;

    width: auto;

    max-width: 205px;
    max-height: 68px;

    object-fit: contain;
}


/* Welcome copy */

.trade-login__welcome-copy {
    position: relative;
    z-index: 3;

    max-width: 620px;

    margin-top: auto;

    padding-top: 70px;
}

.trade-login__eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    color: #fed7aa;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.trade-login__eyebrow i {
    font-size: 14px;
}

.trade-login__welcome-copy h1 {
    max-width: 650px;

    margin: 0;

    color: #fff;

    font-size:
        clamp(48px, 5vw, 76px);

    font-weight: 800;

    line-height: 0.98;

    letter-spacing: -3px;
}

.trade-login__welcome-copy h1 em {
    display: block;

    color: #fed7aa;

    font-style: normal;
}

.trade-login__welcome-copy p {
    max-width: 560px;

    margin:
        24px 0
        0;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   BENEFITS
========================================================= */

.trade-login__benefits {
    position: relative;
    z-index: 3;

    display: grid;

    gap: 10px;

    max-width: 580px;

    margin-top: 42px;
}

.trade-login__benefit {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 13px 15px;

    background:
        rgba(255, 255, 255, 0.075);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 13px;
}

.trade-login__benefit-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

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

    color: #fff;

    background:
        rgba(255, 255, 255, 0.11);

    border-radius: 11px;

    font-size: 17px;
}

.trade-login__benefit > span:last-child {
    color:
        rgba(255, 255, 255, 0.66);

    font-size: 12px;
}

.trade-login__benefit strong {
    display: block;

    margin-bottom: 1px;

    color: #fff;

    font-size: 13px;
    font-weight: 750;
}


/* Welcome bottom */

.trade-login__welcome-footer {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;
    padding-top: 40px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 11px;
    font-weight: 600;
}

.trade-login__welcome-dot {
    width: 3px;
    height: 3px;

    background:
        rgba(255, 255, 255, 0.4);

    border-radius: 50%;
}


/* =========================================================
   FORM AREA
========================================================= */

.trade-login__form-area {
    min-height: 100vh;

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

    padding: 50px;
}

.trade-login__form-wrap {
    width: 100%;
    max-width: 510px;
}

.trade-login__mobile-brand {
    display: none;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.trade-login__card {
    padding:
        clamp(28px, 4vw, 46px);

    background:
        rgba(255, 255, 255, 0.96);

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

    border-radius: 26px;

    box-shadow:
        var(--trade-shadow);
}


/* Heading */

.trade-login__card-heading {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    margin-bottom: 30px;
}

.trade-login__heading-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

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

    color: var(--trade-orange-dark);

    background:
        var(--trade-orange-light);

    border-radius: 14px;

    font-size: 20px;
}

.trade-login__small-title {
    display: block;

    margin-bottom: 2px;

    color: var(--trade-orange-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}

.trade-login__card-heading h2 {
    margin: 0;

    color: var(--trade-heading);

    font-size: 30px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.8px;
}

.trade-login__card-heading p {
    margin:
        5px 0
        0;

    color: var(--trade-muted);

    font-size: 13px;
}


/* =========================================================
   ALERTS
========================================================= */

.trade-login__alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 600;
}

.trade-login__alert i {
    margin-top: 1px;
}

.trade-login__alert--success {
    color: #166534;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;
}

.trade-login__alert--error {
    color: #b91c1c;

    background: #fef2f2;

    border: 1px solid #fecaca;
}


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

.trade-login__form {
    display: grid;

    gap: 20px;
}

.trade-login__field {
    display: grid;

    gap: 7px;
}

.trade-login__field > label,
.trade-login__field-label label {
    color: var(--trade-heading);

    font-size: 12px;
    font-weight: 750;
}

.trade-login__field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.trade-login__forgot {
    padding: 0;

    color: var(--trade-orange-dark);

    background: transparent;

    border: 0;

    font-size: 11px;
    font-weight: 750;
}

.trade-login__forgot:hover {
    color: var(--trade-orange-deep);
}


/* Input */

.trade-login__input {
    position: relative;
}

.trade-login__input > i:first-child {
    position: absolute;

    top: 50%;
    left: 15px;

    color: #a8a29e;

    font-size: 15px;

    transform: translateY(-50%);

    pointer-events: none;
}

.trade-login__input input {
    width: 100%;
    height: 50px;

    padding:
        0
        47px
        0
        44px;

    color: var(--trade-heading);

    background: #fff;

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

    border-radius: 12px;

    outline: 0;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s ease;
}

.trade-login__input input::placeholder {
    color: #b6afa9;

    font-weight: 400;
}

.trade-login__input input:focus {
    border-color:
        #fb923c;

    box-shadow:
        0 0 0 4px
        rgba(249, 115, 22, 0.09);
}


/* Password eye */

.trade-login__password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

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

    padding: 0;

    color: #a8a29e;

    background: transparent;

    border: 0;
    border-radius: 8px;

    transform: translateY(-50%);
}

.trade-login__password-toggle:hover {
    color: var(--trade-orange-dark);

    background: var(--trade-orange-soft);
}


/* =========================================================
   SUBMIT
========================================================= */

.trade-login__submit {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 3px;

    padding:
        0
        18px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--trade-orange),
            var(--trade-orange-dark)
        );

    border: 0;
    border-radius: 12px;

    box-shadow:
        0 10px 24px
        rgba(249, 115, 22, 0.25);

    font-size: 13px;
    font-weight: 800;

    transition: 0.22s ease;
}

.trade-login__submit:hover {
    background:
        linear-gradient(
            135deg,
            var(--trade-orange-dark),
            var(--trade-orange-deep)
        );

    box-shadow:
        0 14px 30px
        rgba(249, 115, 22, 0.31);

    transform: translateY(-2px);
}

.trade-login__submit i {
    transition: 0.2s ease;
}

.trade-login__submit:hover i {
    transform: translateX(3px);
}


/* =========================================================
   REGISTER
========================================================= */

.trade-login__register-wrap {
    margin-top: 2px;

    padding-top: 19px;

    border-top:
        1px solid
        #eee7df;

    text-align: center;
}

.trade-login__register-wrap > span {
    display: block;

    margin-bottom: 8px;

    color: var(--trade-muted);

    font-size: 11px;
}

.trade-login__register {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--trade-orange-dark);

    font-size: 12px;
    font-weight: 800;
}

.trade-login__register:hover {
    color: var(--trade-orange-deep);
}


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

.trade-login__card-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-top: 25px;
    padding-top: 20px;

    border-top:
        1px solid
        #eee7df;
}

.trade-login__card-footer button,
.trade-login__card-footer a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 0;

    color: var(--trade-muted);

    background: transparent;

    border: 0;

    font-size: 11px;
    font-weight: 650;
}

.trade-login__card-footer button:hover,
.trade-login__card-footer a:hover {
    color: var(--trade-orange-dark);
}


/* Security */

.trade-login__security {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 17px;

    color: #a8a29e;

    font-size: 10px;
    font-weight: 600;
}

.trade-login__security i {
    color: #16a34a;
}


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

@media (max-width: 1100px) {

    .trade-login__layout {
        grid-template-columns:
            minmax(380px, 0.9fr)
            minmax(480px, 1.1fr);
    }

    .trade-login__welcome {
        padding: 45px;
    }

    .trade-login__form-area {
        padding: 35px;
    }

    .trade-login__welcome-copy h1 {
        font-size: 54px;
    }

}


@media (max-width: 900px) {

    .trade-login__layout {
        display: block;

        min-height: 100vh;
    }

    .trade-login__welcome {
        display: none;
    }

    .trade-login__form-area {
        min-height: 100vh;

        padding: 40px 20px;
    }

    .trade-login__mobile-brand {
        width: fit-content;

        display: block;

        margin:
            0 auto
            25px;

        padding: 12px 17px;

        background: #fff;

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

        border-radius: 13px;

        box-shadow:
            0 10px 30px
            rgba(68, 43, 23, 0.08);
    }

    .trade-login__mobile-brand img {
        width: auto;

        max-width: 180px;
        max-height: 58px;

        object-fit: contain;
    }

}


@media (max-width: 575px) {

    .trade-login__form-area {
        align-items: flex-start;

        padding:
            25px
            13px
            30px;
    }

    .trade-login__form-wrap {
        max-width: none;
    }

    .trade-login__mobile-brand {
        margin-bottom: 18px;
    }

    .trade-login__mobile-brand img {
        max-width: 150px;
    }

    .trade-login__card {
        padding:
            24px 18px;

        border-radius: 19px;
    }

    .trade-login__card-heading {
        gap: 12px;

        margin-bottom: 25px;
    }

    .trade-login__heading-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        font-size: 17px;
    }

    .trade-login__card-heading h2 {
        font-size: 25px;
    }

    .trade-login__input input {
        height: 49px;
    }

    .trade-login__submit {
        min-height: 50px;
    }

    .trade-login__card-footer {
        flex-wrap: wrap;

        gap: 10px 16px;
    }

}


@media (max-width: 360px) {

    .trade-login__form-area {
        padding-left: 8px;
        padding-right: 8px;
    }

    .trade-login__card {
        padding:
            21px 15px;
    }

}