/* =========================================================
   Giglou Signup Page
   Modern Trading Bot UI
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 15px;

    color: #fff;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(0, 230, 168, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(0, 150, 255, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050b16 0%,
            #081321 50%,
            #050914 100%
        );

    overflow-x: hidden;
}

/* Background glow */

body::before {
    content: "";

    position: fixed;

    width: 360px;
    height: 360px;

    top: -150px;
    right: -120px;

    border-radius: 50%;

    background: rgba(0, 230, 168, 0.08);

    filter: blur(90px);

    pointer-events: none;
}

body::after {
    content: "";

    position: fixed;

    width: 320px;
    height: 320px;

    bottom: -140px;
    left: -120px;

    border-radius: 50%;

    background: rgba(0, 140, 255, 0.08);

    filter: blur(90px);

    pointer-events: none;
}

/* Signup card */

#formsignup {

    width: 480px;
    max-width: 100%;

    padding: 42px 38px 32px;

    background: rgba(9, 18, 31, 0.90);

    border: 1px solid rgba(0, 230, 168, 0.14);

    border-radius: 26px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(0, 230, 168, 0.04);

    position: relative;

    z-index: 2;
}

/* Top line */

#formsignup::before {

    content: "";

    position: absolute;

    top: 0;
    right: 10%;

    width: 80%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #00e6a8,
        #00a9ff,
        transparent
    );

    border-radius: 50%;
}

/* Icon */

#formsignup::after {

    content: "🚀";

    position: absolute;

    top: -25px;
    left: 50%;

    transform: translateX(-50%);

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #00e6a8,
            #008cff
        );

    font-size: 23px;

    box-shadow:
        0 12px 30px rgba(0, 230, 168, 0.28);
}

/* Title */

#formsignup h1 {

    text-align: center;

    color: #ffffff;

    font-size: 27px;

    font-weight: 800;

    margin-bottom: 10px;
}

/* Login link */

#formsignup > p {

    text-align: center;

    color: #8291a5;

    font-size: 14px;

    margin-bottom: 30px;
}

#formsignup > p a {

    color: #00e6a8;

    font-weight: bold;

    text-decoration: none;

    transition: 0.25s ease;
}

#formsignup > p a:hover {

    color: #ffffff;
}

/* Form */

#formm {

    width: 100%;
}

/* Labels */

#formm label {

    display: block;

    margin-bottom: 8px;

    color: #dce6f2;

    font-size: 13px;

    font-weight: bold;

    text-align: right;
}

/* Text inputs */

#formm input[type="text"],
#formm input[type="email"],
#formm input[type="password"] {

    width: 100%;

    height: 50px;

    margin-bottom: 18px;

    padding: 0 15px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    outline: none;

    background: rgba(255, 255, 255, 0.045);

    color: #ffffff;

    font-family: Tahoma, Arial, sans-serif;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Placeholder */

#formm input::placeholder {

    color: #64758a;
}

/* Focus */

#formm input[type="text"]:focus,
#formm input[type="email"]:focus,
#formm input[type="password"]:focus {

    border-color: #00e6a8;

    background: rgba(0, 230, 168, 0.055);

    box-shadow:
        0 0 0 3px rgba(0, 230, 168, 0.08);

    transform: translateY(-1px);
}

/* Address */

#formm textarea {

    width: 100%;

    min-height: 100px;

    resize: vertical;

    margin-bottom: 18px;

    padding: 14px 15px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    outline: none;

    background: rgba(255, 255, 255, 0.045);

    color: #ffffff;

    font-family: Tahoma, Arial, sans-serif;

    font-size: 14px;

    line-height: 1.8;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

#formm textarea:focus {

    border-color: #00e6a8;

    background: rgba(0, 230, 168, 0.055);

    box-shadow:
        0 0 0 3px rgba(0, 230, 168, 0.08);
}

/* Submit */

#subm {

    width: 100%;

    height: 54px;

    margin-top: 5px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #00e6a8,
            #00a9ff
        );

    color: #031018;

    font-size: 16px;

    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

#subm:hover {

    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 12px 30px rgba(0, 230, 168, 0.25);
}

#subm:active {

    transform: translateY(0);
}

/* Terms */

#formp {

    margin-top: 18px !important;
    margin-bottom: 0 !important;

    font-size: 12px !important;

    line-height: 1.9;

    color: #66788c !important;
}

#formp a {

    color: #00e6a8 !important;
}

/* Errors */

#errors {

    margin-top: 18px;
}

#errors li {

    list-style: none;

    margin-bottom: 8px;

    padding: 11px 14px;

    border-radius: 10px;

    background: rgba(255, 70, 70, 0.08);

    border: 1px solid rgba(255, 70, 70, 0.18);

    color: #ff8d8d !important;

    font-size: 13px;

    line-height: 1.8;

    text-align: center;
}

/* Mobile */

@media (max-width: 600px) {

    body {

        padding: 25px 12px;

        align-items: flex-start;
    }

    #formsignup {

        width: 100%;

        padding: 38px 22px 25px;

        border-radius: 22px;

        margin-top: 25px;
    }

    #formsignup h1 {

        font-size: 23px;
    }

    #formsignup > p {

        font-size: 13px;

        margin-bottom: 25px;
    }

    #formm input[type="text"],
    #formm input[type="email"],
    #formm input[type="password"] {

        height: 49px;

        margin-bottom: 16px;
    }

    #formm textarea {

        min-height: 90px;
    }

    #subm {

        height: 52px;
    }
}

/* Small phones */

@media (max-width: 360px) {

    body {

        padding: 10px;
    }

    #formsignup {

        padding: 35px 16px 22px;
    }

    #formsignup h1 {

        font-size: 21px;
    }

    #formm label {

        font-size: 12px;
    }

    #formm input[type="text"],
    #formm input[type="email"],
    #formm input[type="password"],
    #formm textarea {

        font-size: 13px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before {

        transition: none !important;
    }
}