/* 登录页整体布局 */
.login-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 语言切换器 */
.lang-switcher-top {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.lang-switcher-top a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.lang-switcher-top a:hover {
    opacity: 0.8;
}

.lang-switcher-top .divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
}

/* 左右分栏布局 */
.login-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 左侧：品牌区域 */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand-section {
    text-align: center;
    z-index: 1;
    position: relative;
}

.logo-container {
    margin-bottom: 30px;
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.platform-name {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.platform-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 右侧：登录表单 */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: #fff;
}

.login_container {
    width: 100%;
    max-width: 420px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.login-title {
    margin-bottom: 30px;
}

.login-title span {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding: 0;
    display: block;
    line-height: 1.2;
    margin-bottom: 10px;
}

.login-title-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.login-title .a-link,
.login-title-links span {
    color: #667eea;
    font-size: 14px;
    margin: 0;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.2s;
}

.login-title .a-link:hover,
.login-title-links span:hover {
    color: #764ba2;
}

.login-actions {
    margin-top: 12px;
}

/* 记住密码 + 忘记密码 行 */
.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.link-forgot {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.link-forgot:hover { color: #764ba2; }

.login-title .title {
    font-size: 24px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-input {
    padding: 0 0 20px 0;
}

.input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s;
    box-sizing: border-box;
}

.input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input::placeholder {
    color: #999;
}

.btn {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 50px;
    color: #fff;
    border-radius: 10px;
    text-shadow: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.fot-a-link {
    display: block;
    text-align: right;
    margin: 15px 0 0 0;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.fot-a-link:hover {
    color: #764ba2;
}

.checkbox-remember {
    display: flex;
    align-items: center;
    margin: 20px 0 0 0;
    font-size: 14px;
    color: #666;
}

.checkbox-remember input[type=checkbox]+label:before {
    line-height: 1;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    content: '';
    transition: all .2s;
    color: #667eea;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 100%;
}

.checkbox-remember input {
    display: none;
    opacity: 0;
}

.checkbox-remember label {
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-remember input[type=checkbox]:checked+label:before {
    border-color: #667eea;
    background-color: #667eea;
    background-image: url(../../../image/oss/iot/icon-check.svg);
}

.sms-btnGet, .btnGet {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    z-index: 10;
}

.sms-btnGet:hover, .btnGet:hover {
    background: #764ba2;
    transform: translateY(-50%) translateY(-1px);
}

/* 隐藏旧的系统标题 */
.system-title {
    display: none;
}

/* 页脚 */
.footer {
    position: fixed;
    width: 100%;
    bottom: 0px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    height: 40px;
    line-height: 40px;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .login-layout {
        flex-direction: column;
        max-width: 500px;
    }

    .login-left {
        padding: 40px 30px;
        min-height: 300px;
    }

    .platform-name {
        font-size: 28px;
    }

    .platform-subtitle {
        font-size: 16px;
    }

    .login-right {
        padding: 40px 30px;
    }
}

/* 隐藏类 */
.hide {
    display: none !important;
}

/* 确保所有登录容器在显示时正确显示 */
.login_container {
    display: block;
}

.login_container.hide {
    display: none !important;
}

/* 修复输入框宽度问题 */
.login-input input[style*="width"] {
    width: 100% !important;
    box-sizing: border-box;
}
