*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
}

:root {
    --bg-main: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.86);
    --card-border: rgba(255, 255, 255, 0.55);
    --text-main: #172033;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --warning: #d97706;
    --danger-bg: #fef2f2;
    --warning-bg: #fffbeb;
    --border: #e2e8f0;
    --shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.45), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.32), transparent 28%),
        linear-gradient(135deg, #0f172a, #1e3a8a);
    color: var(--text-main);
    overflow: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-visual {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.25);
    animation: floatOrb 8s ease-in-out infinite;
}

.orb-one {
    width: 230px;
    height: 230px;
    right: calc(50% - 350px);
    top: calc(50% - 310px);
    background-image: url("../../assets/7logo.png");
    background-size: 78%;
    background-repeat: no-repeat;
    background-position: center;
}

.orb-two {
    width: 190px;
    height: 190px;
    left: calc(50% - 330px);
    bottom: calc(50% - 330px);
    background-image: url("../../assets/tools.png");
    background-size: 72%;
    background-repeat: no-repeat;
    background-position: center;
    animation-delay: -2.5s;
}

.orb-three {
    width: 120px;
    height: 120px;
    left: 18%;
    top: 17%;
    animation-delay: -4s;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

.login-card {
    position: relative;
    width: min(430px, 100%);
    padding: 28px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.brand-logo img {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.brand-box h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--text-main);
}

.brand-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.login-alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.16);
}

.login-alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.alert-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    border-radius: 999px;
    background: currentColor;
    color: #fff;
    font-weight: 900;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.input-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 46px 0 16px;
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-toggle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    min-width: 58px;
    border: 0;
    border-radius: 13px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.password-toggle:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.login-btn {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
    transition: 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.38);
}

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

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 640px) {
    body {
        overflow: auto;
    }

    .login-page {
        padding: 16px;
    }

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

    .brand-box {
        align-items: flex-start;
    }

    .brand-box h1 {
        font-size: 21px;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 18px;
    }

    .orb-one {
        width: 170px;
        height: 170px;
        right: -70px;
        top: -60px;
    }

    .orb-two {
        width: 150px;
        height: 150px;
        left: -70px;
        bottom: -50px;
    }

    .orb-three {
        display: none;
    }
}