/* =========================================================
   SASTAGRAM — LUXURY BLACK SIGNUP
   PURE BLACK CARD + GLASS INPUTS
========================================================= */

:root {
    --black: #000000;
    --input: rgba(255,255,255,.045);
    --input-hover: rgba(255,255,255,.065);
    --input-focus: rgba(255,255,255,.075);

    --white: #ffffff;
    --text: #eeeeee;
    --muted: #888888;
    --dim: #505050;

    --border: rgba(255,255,255,.10);
    --border-hover: rgba(255,255,255,.20);

    --pink: #e1306c;
    --purple: #833ab4;
    --red: #fd1d1d;
    --orange: #fcaf45;

    --insta: linear-gradient(
        135deg,
        #833ab4 0%,
        #e1306c 40%,
        #fd1d1d 70%,
        #fcaf45 100%
    );
}


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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


html {
    background: #000;
}


body {
    min-height: 100vh;

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

    padding: 12px;

    background: #000;

    color: #fff;

    overflow-x: hidden;
}


/* =========================================================
   SUBTLE AMBIENT LIGHT
   Background itself remains PURE BLACK
========================================================= */

body::before,
body::after {
    content: "";

    position: fixed;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: .055;

    pointer-events: none;

    z-index: 0;
}


body::before {
    background: #833ab4;

    top: -150px;
    left: -150px;
}


body::after {
    background: #e1306c;

    right: -150px;
    bottom: -150px;
}


/* =========================================================
   MAIN CARD
   FULLY BLACK — NOT GREY
========================================================= */

.signup-card {
    position: relative;

    z-index: 5;

    width: 100%;
    max-width: 410px;

    padding: 25px 25px 23px;

    background: #000000;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.95),
        inset 0 1px 0 rgba(255,255,255,.035);

    overflow: hidden;

    transition:
        transform .35s cubic-bezier(.16,1,.3,1),
        border-color .3s ease,
        box-shadow .35s ease;
}


/* TOP INSTAGRAM LINE */

.signup-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--insta);

    opacity: .9;
}


.signup-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(255,255,255,.15);

    box-shadow:
        0 40px 100px rgba(0,0,0,1),
        inset 0 1px 0 rgba(255,255,255,.05);
}


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

.signup-header {
    text-align: center;

    margin-bottom: 17px;
}


/* REMOVE OLD CROWN */

.signup-header i {
    display: none !important;
}


/* REMOVE OLD TEXT LOGO */

.signup-header h1 {
    display: none !important;
}


/* =========================================================
   YOUR SASTAGRAM LOGO
   NO SHADOW
   NO GLOW
========================================================= */

.signup-header::before {
    content: "";

    display: block;

    width: 215px;
    height: 125px;

    margin: -7px auto 0;

    background-image:
        url("sastagram1.png");

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;

    filter: none;

    box-shadow: none;

    text-shadow: none;

    animation: logoEntrance .65s ease both;
}


@keyframes logoEntrance {

    from {
        opacity: 0;

        transform:
            scale(.94)
            translateY(5px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}


/* Subtitle */

.signup-header p {
    margin-top: -2px;

    color: #666;

    font-size: 10px;

    letter-spacing: .5px;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-bar-container {
    width: 100%;

    height: 3px;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255,255,255,.055);
}


.progress-fill {
    width: 25%;

    height: 100%;

    border-radius: inherit;

    background: var(--insta);

    box-shadow:
        0 0 10px rgba(225,48,108,.35);

    transition:
        width .4s cubic-bezier(.16,1,.3,1);
}


/* =========================================================
   STEPS
========================================================= */

.signup-step {
    display: none;

    flex-direction: column;

    gap: 12px;

    opacity: 0;

    transform:
        translateY(10px);

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.signup-step.active {
    display: flex;

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   STEP TITLE
========================================================= */

.step-title {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 3px;

    color: #ededed;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


.step-title::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.15),
            transparent
        );
}


/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.input-group label {
    color: #777;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


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

.signup-card input,
.signup-card select,
.signup-card textarea {

    width: 100%;

    padding: 11px 13px;

    color: #fff;

    background:
        rgba(255,255,255,.045);

    border:
        1px solid
        rgba(255,255,255,.085);

    border-radius: 14px;

    outline: none;

    font-size: 13px;

    box-shadow:
        inset 0 2px 8px rgba(0,0,0,.55),
        0 1px 0 rgba(255,255,255,.02);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    transition:
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .18s ease;
}


/* Placeholder */

.signup-card input::placeholder,
.signup-card textarea::placeholder {
    color: #454545;
}


/* Hover */

.signup-card input:hover,
.signup-card select:hover,
.signup-card textarea:hover {

    background:
        rgba(255,255,255,.065);

    border-color:
        rgba(255,255,255,.18);

    transform:
        translateY(-1px);

    box-shadow:
        inset 0 2px 8px rgba(0,0,0,.45),
        0 7px 20px rgba(0,0,0,.3);
}


/* Focus */

.signup-card input:focus,
.signup-card select:focus,
.signup-card textarea:focus {

    background:
        rgba(255,255,255,.075);

    border-color:
        rgba(225,48,108,.65);

    box-shadow:
        0 0 0 3px
        rgba(225,48,108,.09),

        0 0 18px
        rgba(225,48,108,.07),

        inset 0 2px 8px
        rgba(0,0,0,.4);

    transform:
        translateY(-1px);
}


/* Press */

.signup-card input:active,
.signup-card select:active,
.signup-card textarea:active {
    transform:
        scale(.995);
}


.signup-card textarea {
    resize: vertical;

    min-height: 65px;
}


/* =========================================================
   TWO COLUMN
========================================================= */

.grid-2 {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


/* =========================================================
   SELECT
========================================================= */

.signup-card select {

    appearance: none;

    cursor: pointer;

    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position:
        right 13px center;

    background-size: 15px;

    padding-right: 38px;
}


.signup-card select option {
    background: #0b0b0b;

    color: #fff;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.btn-primary {

    position: relative;

    width: 100%;

    padding: 12px 14px;

    margin-top: 4px;

    border: none;

    border-radius: 14px;

    color: #fff;

    background:
        var(--insta);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .25px;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 8px 24px
        rgba(225,48,108,.18);

    transition:
        transform .18s ease,
        filter .22s ease,
        box-shadow .22s ease;
}


/* Button light sweep */

.btn-primary::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.28),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .55s ease;
}


.btn-primary:hover::before {
    left: 150%;
}


.btn-primary:hover {

    filter:
        brightness(1.12);

    transform:
        translateY(-2px);

    box-shadow:
        0 13px 32px
        rgba(225,48,108,.27);
}


.btn-primary:active {

    transform:
        translateY(1px)
        scale(.985);

    box-shadow:
        0 4px 12px
        rgba(225,48,108,.15);
}


.btn-primary:disabled {

    opacity: .5;

    cursor: wait;

    transform: none;
}


/* =========================================================
   FINISH BUTTON
========================================================= */

#finish-signup-btn {

    background:
        linear-gradient(
            135deg,
            #833ab4,
            #e1306c,
            #fd1d1d,
            #fcaf45
        );

    background-size:
        200% 200%;

    animation:
        finishGradient 5s ease infinite;
}


@keyframes finishGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* =========================================================
   BACK BUTTON
========================================================= */

.btn-secondary {

    width: 100%;

    padding: 8px;

    border:
        1px solid transparent;

    border-radius: 10px;

    background: transparent;

    color: #5d5d5d;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .15s ease;
}


.btn-secondary:hover {

    color: #fff;

    background:
        rgba(255,255,255,.035);

    border-color:
        rgba(255,255,255,.08);
}


.btn-secondary:active {
    transform:
        scale(.97);
}


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

#otp-section {
    animation:
        otpShow .3s ease both;
}


@keyframes otpShow {

    from {
        opacity: 0;
        transform:
            translateY(7px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}


#otp-section p {
    color: #666 !important;

    font-size: 10px !important;

    line-height: 1.5;
}


.otp-inputs {

    display: flex;

    justify-content: center;

    gap: 9px;

    margin: 13px 0;
}


.otp-inputs input {

    width: 47px !important;

    height: 49px;

    padding: 0 !important;

    text-align: center;

    font-size: 19px !important;

    font-weight: 800;

    border-radius: 13px !important;
}


.otp-inputs input:focus {

    border-color:
        rgba(225,48,108,.7) !important;

    box-shadow:
        0 0 0 3px
        rgba(225,48,108,.10),

        0 0 18px
        rgba(225,48,108,.08) !important;
}


/* =========================================================
   PROFILE IMAGE
========================================================= */

.avatar-upload-box {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    margin: 4px 0;
}


.avatar-preview {

    position: relative;

    width: 82px;

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.04);

    border:
        1px dashed
        rgba(255,255,255,.22);

    color: #777;

    font-size: 20px;

    background-size: cover;

    background-position: center;

    cursor: pointer;

    box-shadow:
        inset 0 1px
        rgba(255,255,255,.06),

        0 12px 30px
        rgba(0,0,0,.7);

    transition:
        transform .25s ease,
        border-color .25s ease;
}


.avatar-preview:hover {

    transform:
        scale(1.06);

    border-color:
        rgba(225,48,108,.7);
}


.avatar-upload-box span {

    color: #777 !important;

    font-size: 10px !important;

    transition:
        color .2s ease;
}


.avatar-upload-box span:hover {
    color: #e1306c !important;
}


/* =========================================================
   USERNAME STATUS
========================================================= */

#username-status {

    font-size: 9px;

    font-weight: 700;

    transition:
        opacity .2s ease;
}


.username-checking {
    color: #888;
}


.username-success {
    color: #4bd69a;
}


.username-error {
    color: #ff5275;
}


.username-warning {
    color: #fcaf45;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 5px;
}


::-webkit-scrollbar-track {
    background: #000;
}


::-webkit-scrollbar-thumb {

    border-radius: 10px;

    background:
        linear-gradient(
            #833ab4,
            #e1306c
        );
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    body {
        padding: 7px;
    }


    .signup-card {

        max-width: 400px;

        padding:
            21px
            17px
            19px;

        border-radius: 21px;
    }


    .signup-header::before {

        width: 200px;

        height: 112px;
    }


    .signup-step {
        gap: 10px;
    }


    .signup-card input,
    .signup-card select,
    .signup-card textarea {

        padding:
            10px
            12px;
    }


    .btn-primary {
        padding: 11px;
    }
}


/* =========================================================
   SHORT SCREENS
========================================================= */

@media (max-height: 650px) {

    .signup-card {

        padding-top: 14px;

        padding-bottom: 14px;
    }


    .signup-header {

        margin-bottom: 10px;
    }


    .signup-header::before {

        width: 165px;

        height: 82px;

        margin-top: -5px;
    }


    .signup-header p {
        display: none;
    }


    .progress-bar-container {

        margin-bottom: 13px;
    }


    .signup-step {
        gap: 8px;
    }


    .avatar-preview {

        width: 68px;

        height: 68px;
    }
}