﻿
body.login-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Source Sans 3', sans-serif;
    background: linear-gradient(rgba(0,10,25,.78), rgba(0,5,15,.92)), url('images/login-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Overlay */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,255,255,.10), transparent 45%);
    z-index: 0;
}

/* Moving Network Lines */
.network-lines span {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(transparent, rgba(0,255,255,.5), transparent);
    animation: moveLine 10s linear infinite;
}

    .network-lines span:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
        transform: rotate(45deg);
    }

    .network-lines span:nth-child(2) {
        left: 30%;
        animation-delay: 2s;
        transform: rotate(-45deg);
    }

    .network-lines span:nth-child(3) {
        left: 55%;
        animation-delay: 4s;
        transform: rotate(45deg);
    }

    .network-lines span:nth-child(4) {
        left: 75%;
        animation-delay: 1s;
        transform: rotate(-45deg);
    }

    .network-lines span:nth-child(5) {
        left: 90%;
        animation-delay: 3s;
        transform: rotate(45deg);
    }

@keyframes moveLine {

    from {
        top: -250px;
    }

    to {
        top: 120vh;
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Card */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    background: rgba(5,15,35,.55);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 30px rgba(0,255,255,.15), 0 0 80px rgba(0,123,255,.12);
}

/* Ring */
.globe-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,255,.18);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 35px rgba(0,255,255,.25), inset 0 0 40px rgba(0,255,255,.12);
}

/* Currency */
.currency {
    position: absolute;
    color: rgba(255,255,255,.75);
    font-size: 34px;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(255,255,255,.45);
}

.currency-1 {
    top: 90px;
    left: 35px;
    color: #ffe082;
}

.currency-2 {
    top: 100px;
    right: 45px;
    color: #7cffcb;
}

.currency-3 {
    top: 210px;
    left: 50px;
    color: #ffd180;
}

.currency-4 {
    top: 230px;
    right: 40px;
    color: #fff59d;
}

/* Logo */
.main-logo {
    max-width: 170px;
    height: auto;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 15px rgba(255,255,255,.18));
}

/* Brand */
.brand-title {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 0 12px rgba(255,255,255,.5), 0 0 30px rgba(0,123,255,.6);
}

.brand-subtitle {
    text-align: center;
    color: #e2eeff;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 35px;
}

/* Input */
.custom-group {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.input-group-text {
    background: transparent;
    border: none;
    color: #8efcff;
    font-size: 18px;
    padding-left: 18px;
}

.form-floating {
    flex: 1;
}

    .form-floating > .form-control {
        background: transparent !important;
        border: none;
        color: #fff;
        height: 58px;
    }

        .form-floating > .form-control:focus {
            box-shadow: none;
            color: #fff;
        }

    .form-floating > label {
        color: #d4e6ff;
    }

/* Remember */
.form-check-label,
.forgot-link {
    color: #d8e8ff;
    font-size: 14px;
    text-decoration: none;
}

    .forgot-link:hover {
        color: #7efcff;
    }

/* Button */
.login-btn {
    height: 55px;
    border-radius: 16px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    box-shadow: 0 10px 30px rgba(0,123,255,.35);
    transition: .3s;
}

    .login-btn:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #00f0ff, #0066ff);
    }

/* Fingerprint */
.fingerprint {
    text-align: center;
    margin-top: 35px;
    font-size: 55px;
    color: rgba(255,255,255,.8);
    text-shadow: 0 0 20px rgba(0,255,255,.45);
}

/* Error */
.error-msg {
    color: #ffb6be;
}

/* Mobile */
@media(max-width:768px) {

    .login-card {
        max-width: 100%;
        padding: 28px 20px;
    }

    .brand-title {
        font-size: 38px;
    }

    .brand-subtitle {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .currency {
        font-size: 28px;
    }

    .globe-ring {
        width: 300px;
        height: 300px;
    }
}

.custom-label {
    color: #dff3ff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    letter-spacing: .5px;
}

    .custom-label i {
        color: #7efcff;
        font-size: 16px;
    }

.custom-input-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    transition: .3s;
}

    .custom-input-box:focus-within {
        border-color: rgba(0,255,255,.45);
        box-shadow: 0 0 15px rgba(0,255,255,.12);
    }

.custom-input {
    width: 100% !important;
    height: 58px;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    padding: 0 18px;
    font-size: 15px;
}

    .custom-input:focus {
        box-shadow: none !important;
    }

    .custom-input::placeholder {
        color: rgba(255,255,255,.45);
    }

/* Remember + Forgot */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 28px;
    gap: 10px;
    flex-wrap: wrap;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.25);
    background-color: rgba(255,255,255,.08);
}

    .form-check-input:checked {
        background-color: #00d9ff;
        border-color: #00d9ff;
        box-shadow: 0 0 10px rgba(0,217,255,.4);
    }

.form-check-label {
    color: #dcecff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Forgot Password */
.forgot-link {
    color: #8cecff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .3s;
}

    .forgot-link:hover {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(0,255,255,.7);
        transform: translateX(2px);
    }

    .forgot-link i {
        font-size: 15px;
    }

/* Sign In Button */
.login-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #00e5ff 0%, #0072ff 50%, #001eff 100%);
    box-shadow: 0 12px 30px rgba(0,114,255,.35), inset 0 1px 0 rgba(255,255,255,.15);
    transition: all .35s ease;
    z-index: 1;
}

    .login-btn i {
        margin-right: 8px;
        font-size: 18px;
    }

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(0,229,255,.35), 0 0 20px rgba(0,114,255,.25);
        background: linear-gradient(135deg, #00f7ff 0%, #008cff 50%, #003cff 100%);
    }

    .login-btn:active {
        transform: scale(.98);
    }

/* Animated Glow */
.btn-glow {
    position: absolute;
    top: -50%;
    left: -120%;
    width: 80px;
    height: 200%;
    background: rgba(255,255,255,.22);
    transform: rotate(25deg);
    animation: glowMove 3s linear infinite;
}

@keyframes glowMove {

    0% {
        left: -120%;
    }

    100% {
        left: 140%;
    }
}

/* Mobile */
@media(max-width:576px) {

    .remember-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-link {
        margin-left: 2px;
    }
}
