@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

*,
*:before,
*:after {
    box-sizing: border-box;
}

:root {
    --login-bg: #f4f7fb;
    --login-surface: #ffffff;
    --login-text: #172033;
    --login-muted: #64748b;
    --login-border: #dbe3ef;
    --login-primary: #2563eb;
    --login-primary-hover: #1d4ed8;
    --login-accent: #14b8a6;
    --login-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

body {
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 20%, rgba(20, 184, 166, .18), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(37, 99, 235, .18), transparent 26rem),
        linear-gradient(135deg, #eef5ff, var(--login-bg));
    color: var(--login-text);
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 24px;
}

.top,
.bottom {
    display: none;
}

.center {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo,
#logo {
    width: min(260px, 72vw);
    padding: 0;
    position: static;
    transform: none;
    background: transparent;
    text-align: center;
    opacity: 1;
    transition: opacity .2s ease;
    z-index: 1;
    margin: 0 0 28px;
}

#logo {
    display: block;
    height: auto;
}

.box {
    width: min(420px, 100%);
    padding: 34px;
    position: static;
    transform: none;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(219, 227, 239, .9);
    border-radius: 8px;
    box-shadow: var(--login-shadow);
    text-align: center;
    opacity: 1;
    backdrop-filter: blur(14px);
}

.box h1 {
    color: var(--login-text);
    text-transform: none;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 24px;
}

.box h1::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 99px;
    background: var(--login-accent);
}

.box h2 {
    color: #dc2626;
    font-weight: 600;
}

.box input[type="text"],
.box input[type="password"] {
    background: #ffffff;
    display: block;
    margin: 12px auto;
    text-align: left;
    border: 1px solid var(--login-border);
    padding: 13px 14px;
    width: 100%;
    outline: none;
    color: var(--login-text);
    border-radius: 6px;
    transition: border-color .18s ease, box-shadow .18s ease;
    font-size: 15px;
}

.box input[type="text"]:focus,
.box input[type="text"]:hover,
.box input[type="password"]:focus,
.box input[type="password"]:hover {
    width: 100%;
    background: #ffffff;
    color: var(--login-text);
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.box button[type="submit"] {
    background: var(--login-primary);
    display: block;
    margin: 22px auto 0;
    text-align: center;
    border: 1px solid transparent;
    padding: 13px 20px;
    width: 100%;
    outline: none;
    color: #ffffff;
    border-radius: 6px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.box button[type="submit"]:hover {
    width: 100%;
    background: var(--login-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .30);
}

@media (max-width: 520px) {
    .container {
        padding: 18px;
    }

    .box {
        padding: 26px 20px;
    }

    .box h1 {
        font-size: 22px;
    }
}
