﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: linear-gradient( 135deg, #dff4ff 0%, #87ceeb 50%, #5bbce8 100% );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #23445a;
}

.login-page {
    width: 100%;
    max-width: 420px;
}

.system-title {
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 83, 128, 0.2);
}

    .system-title h1 {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .system-title p {
        font-size: 14px;
        opacity: 0.95;
    }

.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0, 90, 140, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

    .login-card h2 {
        text-align: center;
        font-size: 24px;
        color: #277ba5;
        margin-bottom: 8px;
    }

.login-description {
    text-align: center;
    color: #78909c;
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #41697f;
    }

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #c4e5f4;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #23445a;
    background-color: #f9fdff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

    .form-control::placeholder {
        color: #a2b8c4;
    }

    .form-control:focus {
        border-color: #4cb5e5;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(76, 181, 229, 0.15);
    }

.password-box {
    position: relative;
}

    .password-box .form-control {
        padding-right: 72px;
    }

.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #4ca6cf;
    cursor: pointer;
    font-size: 13px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #607d8b;
    cursor: pointer;
}

    .remember-box input {
        width: 16px;
        height: 16px;
        accent-color: #36a9dc;
    }

.forgot-password {
    color: #2999cb;
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.login-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 11px;
    background: linear-gradient( 135deg, #53c3ef, #2498d0 );
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(36, 152, 208, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 11px 22px rgba(36, 152, 208, 0.34);
    }

    .login-button:active {
        transform: translateY(0);
        opacity: 0.9;
    }

.register-section {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #718c9a;
}

    .register-section a {
        color: #228fc3;
        font-weight: 600;
        text-decoration: none;
    }

        .register-section a:hover {
            text-decoration: underline;
        }

.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 22px;
}

.error-message {
    display: none;
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #ffd1d1;
    border-radius: 8px;
    background-color: #fff0f0;
    color: #d14b4b;
    font-size: 13px;
}
@media (max-width: 600px) {
    body {
        padding: 18px;
        align-items: center;
    }

    .system-title {
        margin-bottom: 18px;
    }

        .system-title h1 {
            font-size: 25px;
        }

    .login-card {
        padding: 27px 22px;
        border-radius: 15px;
    }

        .login-card h2 {
            font-size: 22px;
        }
}

@media (max-width: 380px) {
    body {
        padding: 12px;
    }

    .login-card {
        padding: 24px 17px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .forgot-password {
        align-self: flex-end;
    }
}
