/* =========================================================
   Giglou Login 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;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 220, 170, 0.12), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(0, 130, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #050b16 0%, #081321 50%, #050914 100%);
    color: #ffffff;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
    overflow-x: hidden;
}

/* Background glow */

body::before {
    content: "";
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(0, 255, 180, 0.08);
    filter: blur(90px);
    top: -120px;
    right: -100px;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 130, 255, 0.08);
    filter: blur(90px);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

/* Main information box */

.log1 {
    width: 460px;
    max-width: 100%;
    margin-left: 25px;

    padding: 35px 30px;

    background: rgba(13, 24, 40, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    position: relative;
    overflow: hidden;
}

/* Green line */

.log1::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #00e6a8,
        #00aaff,
        transparent
    );
}

.log1 p {
    color: #b9c7d8;
    font-size: 15px;
    line-height: 2.2;
    text-align: right;
}

.log1 strong {
    color: #00e6a8;
    font-size: 18px;
}

/* Login Card */

#formsignup {
    width: 420px;
    max-width: 100%;

    padding: 40px 35px;

    background: rgba(9, 18, 31, 0.88);

    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 40px rgba(0, 230, 168, 0.04);

    position: relative;
    z-index: 2;
}

/* Top decorative line */

#formsignup::before {
    content: "";
    position: absolute;

    top: 0;
    right: 10%;
    width: 80%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #00e6a8,
        #00aaff,
        transparent
    );

    border-radius: 50%;
}

/* Logo-style icon */

#formsignup::after {
    content: "⚡";

    position: absolute;

    top: -24px;
    left: 50%;

    transform: translateX(-50%);

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #00e6a8,
        #008cff
    );

    color: #041019;

    font-size: 24px;

    box-shadow:
        0 10px 30px rgba(0, 230, 168, 0.3);
}

/* Title */

#formsignup h1 {
    text-align: center;

    margin-bottom: 12px;

    font-size: 28px;
    font-weight: 800;

    color: #ffffff;

    letter-spacing: -0.5px;
}

/* Subtitle */

#formp {
    text-align: center;

    color: #8291a5;

    font-size: 14px;

    margin-bottom: 32px;
}

#formp a {
    color: #00e6a8;

    text-decoration: none;

    font-weight: bold;

    transition: 0.25s ease;
}

#formp a:hover {
    color: #ffffff;
}

/* Form */

#formm {
    width: 100%;
}

/* Labels */

#formm label {
    display: block;

    margin-bottom: 9px;

    color: #dce6f2;

    font-size: 14px;

    font-weight: bold;

    text-align: right;
}

/* Inputs */

#formm input[type="text"],
#formm input[type="password"] {

    width: 100%;

    height: 52px;

    margin-bottom: 20px;

    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.045);

    color: #ffffff;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Placeholder */

#formm input::placeholder {
    color: #65758a;
}

/* Focus */

#formm input[type="text"]: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),
        0 8px 25px rgba(0, 0, 0, 0.15);

    transform: translateY(-1px);
}

/* Login button */

#subm {

    width: 100%;

    height: 54px;

    border: none;

    border-radius: 14px;

    margin-top: 5px;

    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;
}

/* Button hover */

#subm:hover {

    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 12px 30px rgba(0, 230, 168, 0.25);
}

/* Button click */

#subm:active {
    transform: translateY(0);
}

/* Error */

#login {
    margin-top: 18px;
}

#login li {

    list-style: none;

    padding: 12px 15px;

    border-radius: 11px;

    background: rgba(255, 70, 70, 0.08);

    border: 1px solid rgba(255, 70, 70, 0.18);

    color: #ff8d8d;

    font-size: 13px;

    line-height: 1.8;

    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {

    body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .log1 {
        width: 100%;
        max-width: 520px;

        margin-left: 0;

        padding: 25px 22px;

        order: 2;
    }

    #formsignup {
        width: 100%;
        max-width: 420px;

        order: 1;
    }
}

/* Mobile */

@media (max-width: 500px) {

    body {
        padding: 15px;

        align-items: stretch;
        justify-content: center;
    }

    #formsignup {
        padding: 38px 22px 25px;

        border-radius: 22px;
    }

    #formsignup h1 {
        font-size: 24px;
    }

    #formp {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .log1 {
        padding: 22px 20px;

        border-radius: 20px;
    }

    .log1 p {
        font-size: 13px;
        line-height: 2;
    }

    .log1 strong {
        font-size: 16px;
    }

    #formm input[type="text"],
    #formm input[type="password"] {
        height: 50px;
    }

    #subm {
        height: 52px;
    }
}

/* Very small screens */

@media (max-width: 350px) {

    body {
        padding: 10px;
    }

    #formsignup {
        padding: 35px 16px 20px;
    }

    #formsignup h1 {
        font-size: 21px;
    }

    .log1 {
        padding: 18px 15px;
    }
}

/* Reduce animations for accessibility */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}