﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at top, #202342, #090b16 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
.alert .btn-close{
        position: absolute;
    right: 6px;
    top: 5%;
    outline: none;
    border: 0;
    background: transparent;
    font-size: 17px;
}

.bg-light {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .4;
    animation: float 9s infinite alternate ease-in-out;
}

.light-1 {
    background: #00e5ff;
    top: -100px;
    left: -100px;
}

.light-2 {
    background: #7dff7a;
    right: -120px;
    bottom: -120px;
    animation-delay: 2s;
}

.mouse-light {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 229, 255, .15);
    filter: blur(80px);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.login-wrapper {
    width: 100%;
    max-width: 620px;
    text-align: center;
    z-index: 2;
}

.brand h1 {
    font-size: 42px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

    .brand h1 span {
        color: #70ff89;
    }

.brand p {
    color: #9fa8c9;
    margin-bottom: 40px;
}

.circle-area {
    width: 520px;
    height: 520px;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateRing 18s linear infinite;
}

    .ring span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 7px;
        height: 32px;
        background: rgba(100, 120, 170, .45);
        border-radius: 20px;
        transform: rotate(calc(var(--i) * 5deg)) translateY(-245px);
        transform-origin: center 245px;
    }

        .ring span:nth-child(6n) {
            background: #66eaff;
            box-shadow: 0 0 15px #66eaff;
        }

        .ring span:nth-child(13n) {
            background: #70ff89;
            box-shadow: 0 0 15px #70ff89;
        }

.login-card {
    width: 350px;
    padding: 38px 34px 7px;
    border-radius: 28px;
    background: rgba(20, 24, 44, .72);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 30px rgba(255,255,255,.03);
    position: relative;
    z-index: 3;
}

    .login-card h2 {
        font-size: 30px;
        margin-bottom: 6px;
    }

.subtitle {
    color: #9fa8c9;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 22px;
}

    .input-group input {
        width: 100%;
        height: 48px;
        border-radius: 30px;
        border: 1.5px solid rgba(102, 234, 255, .5);
        background: rgba(255,255,255,.04);
        color: #fff;
        outline: none;
        padding: 0 20px;
        font-size: 15px;
        transition: .3s;
    }

    .input-group label {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #a8b0d2;
        font-size: 14px;
        pointer-events: none;
        transition: .3s;
    }

    .input-group input:focus,
    .input-group input:valid {
        border-color: #66eaff;
        box-shadow: 0 0 18px rgba(102,234,255,.35);
    }

        .input-group input:focus + label,
        .input-group input:valid + label {
            top: -7px;
            background: #171b31;
            padding: 0 8px;
            color: #66eaff;
            font-size: 12px;
        }

.password-group input {
    padding-right: 50px;
}

.password-group button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 24px;
    color: #a8b0d2;
}

    .form-options a {
        color: #66eaff;
        text-decoration: none;
    }

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #66eaff, #70ff89);
    color: #07111d;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .3s;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 25px rgba(102,234,255,.55);
    }

.loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,.2);
    border-top-color: #07111d;
    border-radius: 50%;
    display: none;
    margin: auto;
    animation: spin .8s linear infinite;
}

.login-card.loading .btn-text {
    display: none;
}

.login-card.loading .loader {
    display: block;
}

.success-icon {
    display: none;
    margin-top: 22px;
    font-size: 42px;
    color: #70ff89;
    text-shadow: 0 0 25px #70ff89;
}

.login-card.success .success-icon {
    display: block;
    animation: pop .4s ease;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(60px,40px);
    }
}

@keyframes pop {
    from {
        transform: scale(.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media(max-width: 600px) {
    .circle-area {
        width: 380px;
        height: 380px;
    }

    .ring span {
        transform: rotate(calc(var(--i) * 5deg)) translateY(-180px);
        transform-origin: center 180px;
        height: 24px;
    }

    .login-card {
        width: 310px;
        padding: 32px 26px;
    }

    .brand h1 {
        font-size: 32px;
    }
}
