* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: url('../images/login.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1400px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 150, 100, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 200, 150, 0.4);
    padding-top: 80px; /* 为标题预留空间 */
}

/* 新增：跨区标题样式 */
.main-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 100, 0.3), transparent);
    border-bottom: 1px solid rgba(0, 200, 150, 0.3);
    z-index: 2;
}

.main-title h1 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #00ffaa, #00ddff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    line-height: 1.4;
    letter-spacing: 1px;
}

.main-title .company {
    display: block;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 5px;
}

.main-title .system {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.login-section {
    flex: 1;
    padding: 40px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 200, 150, 0.4);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.6);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.9);
    padding: 0 5px;
    color: #00ffaa;
}

.select-group {
    position: relative;
    margin-bottom: 15px;
}

.select-group select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 200, 150, 0.4);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffaa'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    transition: all 0.3s;
}

.select-group select:focus {
    outline: none;
    border-color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.6);
}

.select-group label {
    position: absolute;
    left: 20px;
    top: -10px;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.9);
    padding: 0 5px;
    color: #00ffaa;
}

button {
    padding: 15px;
    background: linear-gradient(90deg, #00aa77, #00ddff);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s;
    margin-top: 10px;
    letter-spacing: 2px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 200, 0.5);
    background: linear-gradient(90deg, #00ddff, #00aa77);
}

.image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.image-section img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 200, 150, 0.4);
    border: 1px solid rgba(0, 200, 150, 0.3);
    transition: transform 0.5s;
}

.image-section img:hover {
    transform: scale(1.03);
}

.forgot-password {
    text-align: right;
    margin-top: -15px;
}

.forgot-password a {
    color: rgba(0, 200, 150, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #00ffaa;
    text-decoration: underline;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 40, 30, 0.9);
    color: #00ffaa;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #00ffaa;
    font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding-top: 60px;
    }

    .main-title h1 {
        font-size: 1.5rem;
    }

    .main-title .company {
        font-size: 1rem;
    }

    .main-title .system {
        font-size: 1.2rem;
    }

    .image-section img {
        margin-top: 20px;
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .main-title h1 {
        font-size: 1.2rem;
    }

    .main-title .company {
        font-size: 0.8rem;
    }

    .main-title .system {
        font-size: 1rem;
    }

    .login-section, .image-section {
        padding: 30px;
    }
}

iframe {
    border: none;
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
}