* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

:root {
    --primary: #1f7895;
    --primary-dark: #175f79;
    --navy: #1d3557;
    --text: #52657f;
    --border: #dbe7f2;
    --background: #edf4fb;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(48, 157, 187, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(29, 53, 87, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f6faff 0%,
            var(--background) 50%,
            #e8f1fa 100%
        );
}


.login-card {
    position: relative;
    width: 440px;
    padding: 46px 48px 42px;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    box-shadow:
        0 28px 70px rgba(35, 66, 101, 0.14),
        0 8px 24px rgba(35, 66, 101, 0.06);
    backdrop-filter: blur(18px);
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 45px;
    right: 45px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(
        90deg,
        var(--primary),
        #59aec4
    );
}

.login-logo {
    display: block;
    width: 245px;
    max-height: 105px;
    object-fit: contain;
    margin: 0 auto 24px;
}

h1 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.login-subtitle {
    margin-bottom: 30px;
    color: #8190a5;
    font-size: 14px;
}

input {
    width: 100%;
    height: 56px;
    margin-bottom: 16px;
    padding: 0 18px;
    color: var(--navy);
    font-size: 16px;
    background: #f8fbfe;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder {
    color: #9aa8b9;
}

input:focus {
    background: #ffffff;
    border-color: #4b9eb7;
    box-shadow: 0 0 0 4px rgba(47, 139, 165, 0.12);
}

button {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    color: white;
    font-size: 17px;
    font-weight: 650;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    box-shadow: 0 12px 24px rgba(31, 120, 149, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 30px rgba(31, 120, 149, 0.28);
}

button:active {
    transform: translateY(0);
}

#msg {
    min-height: 20px;
    margin-top: 17px;
    color: #d25353;
    font-size: 14px;
    text-align: center;
}

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

    .login-card {
        width: 100%;
        padding: 38px 26px 34px;
        border-radius: 24px;
    }

    .login-logo {
        width: 210px;
    }

    h1 {
        font-size: 27px;
    }
}