﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #02040d;
    color: #ffffff;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

/* =========================================================
           MAIN BACKGROUND
        ========================================================= */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    background: radial-gradient(circle at 20% 20%, rgba(0, 94, 255, .16), transparent 30%), radial-gradient(circle at 80% 30%, rgba(117, 0, 255, .15), transparent 30%), radial-gradient(circle at 50% 100%, rgba(0, 217, 255, .10), transparent 35%), #02040d;
}

/* =========================================================
           PARTICLE CANVAS
        ========================================================= */

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =========================================================
           GLOWING ORBS
        ========================================================= */

.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.orb-one {
    width: 420px;
    height: 420px;
    left: -180px;
    top: -180px;
    background: radial-gradient(circle, rgba(0, 174, 255, .20), rgba(0, 75, 255, .06) 45%, transparent 70%);
    animation: orbFloat1 9s ease-in-out infinite;
}

.orb-two {
    width: 500px;
    height: 500px;
    right: -250px;
    bottom: -240px;
    background: radial-gradient(circle, rgba(143, 0, 255, .22), rgba(0, 77, 255, .05) 45%, transparent 70%);
    animation: orbFloat2 12s ease-in-out infinite;
}

.orb-three {
    width: 300px;
    height: 300px;
    right: 15%;
    top: 5%;
    background: radial-gradient(circle, rgba(255, 193, 7, .07), transparent 70%);
    animation: orbFloat3 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%,100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(50px,35px);
    }
}

@keyframes orbFloat2 {
    0%,100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(-50px,-40px);
    }
}

@keyframes orbFloat3 {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(40px);
    }
}

/* =========================================================
           DECORATIVE GRID
        ========================================================= */

.background-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .12;
    background-image: linear-gradient(rgba(0, 175, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 175, 255, .18) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient( to bottom, transparent, black 20%, black 80%, transparent );
}

/* =========================================================
           MAIN CONTENT
        ========================================================= */

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
           LOGIN CARD
        ========================================================= */

.login-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 42px 42px 38px;
    border-radius: 28px;
    background: linear-gradient( 145deg, rgba(13, 22, 51, .94), rgba(4, 8, 22, .92) );
    border: 1px solid rgba(255, 210, 75, .20);
    box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 70px rgba(0,90,255,.12), inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
    animation: cardAppear .9s ease-out;
}

@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top gold line */

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 2px;
    background: linear-gradient( 90deg, transparent, #d89b28, #ffe28a, #d89b28, transparent );
    box-shadow: 0 0 15px rgba(255,196,57,.7);
}

/* Blue glow */

.login-card::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: -170px;
    right: -130px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(0,170,255,.15), transparent 70% );
    pointer-events: none;
}

/* =========================================================
           LOGO
        ========================================================= */

.logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.logo {
    width: 230px;
    max-width: 75%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,196,55,.18)) drop-shadow(0 0 20px rgba(0,120,255,.08));
}

/* =========================================================
           HEADER
        ========================================================= */

.welcome-title {
    text-align: center;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .8px;
    margin-top: 4px;
    color: #ffffff;
}

    .welcome-title span {
        background: linear-gradient( 90deg, #f4c45d, #fff0a7, #dba536 );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.subtitle {
    text-align: center;
    margin-top: 8px;
    color: #8e9bbd;
    font-size: 13px;
    letter-spacing: .5px;
}

/* =========================================================
           GOLD DIVIDER
        ========================================================= */

.gold-divider {
    width: 100%;
    height: 1px;
    margin: 26px 0 25px;
    background: linear-gradient( 90deg, transparent, rgba(240,190,70,.65), transparent );
}

/* =========================================================
           FORM
        ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    color: #dbe2f5;
    font-weight: 600;
    letter-spacing: .3px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dcae42;
    font-size: 16px;
    z-index: 2;
}

.form-input {
    width: 100%;
    height: 53px;
    padding: 0 48px 0 48px;
    border-radius: 13px;
    border: 1px solid rgba(130,151,198,.20);
    outline: none;
    background: linear-gradient( 120deg, rgba(255,255,255,.055), rgba(255,255,255,.025) );
    color: #ffffff;
    font-size: 15px;
    transition: border-color .3s, box-shadow .3s, background .3s;
}

    .form-input::placeholder {
        color: #66718e;
    }

    .form-input:focus {
        border-color: rgba(225,180,65,.72);
        background: linear-gradient( 120deg, rgba(255,255,255,.075), rgba(255,255,255,.035) );
        box-shadow: 0 0 0 3px rgba(225,180,65,.07), 0 0 22px rgba(0,112,255,.08);
    }

/* =========================================================
           SHOW PASSWORD
        ========================================================= */

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    outline: none;
    background: transparent;
    color: #8490ad;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: .25s;
}

    .password-toggle:hover {
        color: #f2c55e;
    }

/* =========================================================
           LINKS
        ========================================================= */

.links-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 25px;
}

.login-link {
    color: #9ca9c7;
    text-decoration: none;
    font-size: 12px;
    transition: .25s;
}

    .login-link:hover {
        color: #f3c558;
        text-decoration: none;
    }

.transaction-link {
    color: #8d9abc;
    text-decoration: none;
    font-size: 12px;
    transition: .25s;
}

    .transaction-link:hover {
        color: #4ddaff;
    }

/* =========================================================
           LOGIN BUTTON
        ========================================================= */

.signin-button {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    color: #080a11;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.1px;
    background: linear-gradient( 100deg, #d89a2b, #ffe28a 45%, #d9a038 );
    box-shadow: 0 10px 30px rgba(221,165,48,.18), inset 0 1px 0 rgba(255,255,255,.55);
    transition: transform .25s, box-shadow .25s, filter .25s;
}

    .signin-button:hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
        box-shadow: 0 14px 35px rgba(221,165,48,.30), 0 0 30px rgba(255,198,74,.10);
    }

    .signin-button:active {
        transform: translateY(0);
    }

/* =========================================================
           MESSAGE
        ========================================================= */

.message {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    min-height: 18px;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
    color: #ff8e8e;
}

/* =========================================================
           SIGNUP
        ========================================================= */

.signup-area {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #7f8aa6;
}

.signup-link {
    color: #f0c356;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

    .signup-link:hover {
        color: #fff0a2;
    }

/* =========================================================
           BACK HOME
        ========================================================= */

.home-area {
    text-align: center;
    margin-top: 22px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7785a5;
    text-decoration: none;
    font-size: 12px;
    transition: .25s;
}

    .home-link:hover {
        color: #4bdcff;
    }

/* =========================================================
           FOOTER
        ========================================================= */

.copyright {
    margin-top: 24px;
    text-align: center;
    color: #46516c;
    font-size: 10px;
    letter-spacing: .5px;
}

/* =========================================================
           FLOATING MINI DECORATIONS
        ========================================================= */

.floating-ring {
    position: absolute;
    border: 1px solid rgba(0,190,255,.20);
    border-radius: 50%;
    pointer-events: none;
}

.ring-one {
    width: 140px;
    height: 140px;
    left: 8%;
    top: 15%;
    animation: rotateRing 18s linear infinite;
}

.ring-two {
    width: 100px;
    height: 100px;
    right: 8%;
    bottom: 12%;
    border-color: rgba(211,163,53,.18);
    animation: rotateRing 14s linear infinite reverse;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
           RESPONSIVE
        ========================================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 20px 14px;
    }

    .login-card {
        max-width: 100%;
        padding: 31px 22px 28px;
        border-radius: 22px;
    }

    .logo {
        width: 200px;
        max-width: 72%;
    }

    .welcome-title {
        font-size: 23px;
    }

    .subtitle {
        font-size: 12px;
    }

    .gold-divider {
        margin: 21px 0;
    }

    .form-input {
        height: 51px;
    }

    .signin-button {
        height: 53px;
    }

    .links-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ring-one {
        left: -70px;
        top: 10%;
    }

    .ring-two {
        right: -40px;
        bottom: 8%;
    }
}

@media (max-width: 380px) {

    .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo {
        width: 180px;
    }

    .welcome-title {
        font-size: 21px;
    }
}
