* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #9fd6ff 0%, #d8eeff 55%, #eef7ff 100%);
}

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

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    top: 8%;
    width: 260px;
    height: 86px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    filter: blur(1px);
    z-index: -1;
    animation: cloudsDrift 55s linear infinite;
}

.login-page::before {
    left: -300px;
    box-shadow:
        75px 16px 0 12px rgba(255, 255, 255, 0.78),
        155px 8px 0 5px rgba(255, 255, 255, 0.74),
        45px 36px 0 2px rgba(255, 255, 255, 0.68);
}

.login-page::after {
    top: 28%;
    left: -380px;
    width: 320px;
    height: 96px;
    opacity: 0.85;
    animation-duration: 72s;
    box-shadow:
        85px 18px 0 14px rgba(255, 255, 255, 0.72),
        170px 10px 0 7px rgba(255, 255, 255, 0.68),
        55px 38px 0 3px rgba(255, 255, 255, 0.62);
}

@keyframes cloudsDrift {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 760px));
    }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(3px);
    border-radius: 18px;
    padding: 28px;
    box-shadow:
        0 26px 50px rgba(30, 64, 175, 0.16),
        0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.network-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.network-status[data-state="online"] {
    background: #dcfce7;
    color: #166534;
}

.network-status[data-state="offline"] {
    background: #fee2e2;
    color: #991b1b;
}

.login-logo {
    width: 240px;
    height: auto;
    display: block;
}

h1 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0f172a;
    letter-spacing: 0.2px;
}

.login-message {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.login-message[data-type="success"] {
    background: #ecfdf3;
    color: #166534;
}

.login-message[data-type="error"] {
    background: #fef2f2;
    color: #991b1b;
}

.login-message[data-type="info"] {
    background: #eff6ff;
    color: #1d4ed8;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    cursor: pointer;
}

.remember-row input {
    width: auto;
    margin: 0;
}

.auth-links {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.auth-links a {
    font-size: 14px;
    color: #1d4ed8;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.login-version {
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

button {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
