@font-face {
    font-family: DingTalkJBT;
    src: url(https://dogecloud.cdn.hiyuansir.com/public_files/css/DingTalkJBT.ttf.css) format("truetype")
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* background-color: rgb(243, 244, 246); */
    background-image: url(https://dogecloud.cdn.hiyuansir.com/public_files/images/login_background-image.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo img {
    height: 50px;
    margin-right: 12px;
}

.title-text {
    font-family: DingTalkJBT;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

sup {
    font-size: 15px;
    vertical-align: top;
    font-family: DingTalkJBT;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: #0078d4;
    outline: none;
}

.remember-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.remember-container input {
    margin-right: 8px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #005a9e;
}

.message {
    color: red;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.footer {
    margin-top: 30px;
    font-size: 13px;
    text-align: center;
    color: #777;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0078d4;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
        height: 100dvh;
    }

    .login-container {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
        max-width: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 24px;
    }

    .header {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        margin: 0 0 10px 0;
        height: 150px;
    }

    .title-text {
        font-size: 20px;
    }

    .footer {
        margin-top: auto;
        padding-top: 30px;
        font-size: 12px;
    }
}