:root {
    --dark: #0b0c0e;
    --dark-2: #151719;
    --charcoal: #202326;
    --gunmetal: #303337;
    --silver: #bfc3c7;
    --silver-light: #e8eaec;
    --white: #fff;
    --text: #f5f5f5;
    --muted: rgba(255, 255, 255, .65);
    --glass: rgba(255, 255, 255, .08);
    --border: rgba(255, 255, 255, .15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,.10), transparent 25%),
        radial-gradient(circle at 90% 90%, rgba(180,185,190,.10), transparent 28%),
        linear-gradient(135deg, var(--dark), var(--dark-2) 45%, var(--gunmetal));

    overflow: hidden;
}

.login-logo {
    display: block;
    max-width: 140px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.bg-shape {
    position: absolute;
    width: 350px;
    height: 350px;

    border-radius: 50%;
    filter: blur(100px);
    opacity: .2;
    pointer-events: none;
}

.shape1 {
    top: -150px;
    left: -150px;
    background: #d5d8db;
    animation: float1 9s ease-in-out infinite;
}

.shape2 {
    right: -150px;
    bottom: -150px;
    background: #777c82;
    animation: float2 11s ease-in-out infinite;
}

@keyframes float1 {
    50% {
        transform: translateY(40px);
    }
}

@keyframes float2 {
    50% {
        transform: translateY(-40px);
    }
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.login-card {
    padding: 40px 30px;
    border-radius: 26px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.12),
        rgba(255,255,255,.045)
    );
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border);
    box-shadow:
        0 25px 60px rgba(0,0,0,.45),
        inset 0 1px rgba(255,255,255,.12);
    animation: fadeUp .6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-box {
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #fff,
        var(--silver-light),
        #aeb3b8
    );
    border: 1px solid rgba(255,255,255,.6);
    box-shadow:
        0 12px 30px rgba(0,0,0,.25),
        inset 0 1px 2px rgba(255,255,255,.9);
}

.logo-box i {
    font-size: 40px;
    color: var(--charcoal);
}

.logo-title {
    color: var(--white);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-sub {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    margin-bottom: 32px;
}

.form-label {
    color: #eee;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 7px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group-text {
    min-width: 48px;
    justify-content: center;
    color: var(--silver-light);
    background: rgba(255,255,255,.08);
    border: 1px solid var(--border);
    border-radius: 11px 0 0 11px;
}

.form-control,
.form-select {
    height: 52px;
    color: var(--white);
    background: rgba(0,0,0,.18);
    border: 1px solid var(--border);
    transition: .25s ease;
}

.form-control {
    border-radius: 0 11px 11px 0;
}

.form-select {
    border-radius: 11px;
}

.form-control::placeholder {
    color: rgba(255,255,255,.42);
}

.form-control:focus,
.form-select:focus {
    color: var(--white);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.45);
    box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}

.form-select option {
    color: #222;
    background: #eee;
}

.btn-login {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e8eaec 50%,
        #b8bdc2 100%
    );
    color: #202326;
    font-size: 16px;
    font-weight: 700;
    box-shadow:
        0 10px 25px rgba(0,0,0,.25),
        inset 0 1px rgba(255,255,255,.9);
    transition: .25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        #ffffff,
        #f0f1f2
    );
    color: #17191b;
    box-shadow:
        0 15px 30px rgba(0,0,0,.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 1;
    cursor: wait;
    transform: none;
    background: linear-gradient(
        135deg,
        #e1e3e5,
        #c5c9cd
    );
    color: #202326;
}

.btn-login .loading-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.btn-login .btn-text {
    color: #202326;
    line-height: 1;
}

.btn-login .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(32,35,38,.18);
    border-top-color: #202326;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.footer-text {
    margin-top: 22px;
    color: rgba(255,255,255,.5);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 15px;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 23px;
    }

    .logo-box {
        width: 75px;
        height: 75px;
        border-radius: 20px;
    }

    .logo-box i {
        font-size: 34px;
    }

    .logo-title {
        font-size: 24px;
    }

    .logo-sub {
        margin-bottom: 28px;
    }
}