/* login.css - 登录页专属样式 (依赖 public.css) */
body {
    /* 深邃夜空渐变：从黑到深蓝 */
    background: linear-gradient(to bottom, #02010a 0%, #0f172a 50%, #1e293b 100%);
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* --- 登录容器 (悬浮于星空) --- */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 10px;
    animation: float 6s ease-in-out infinite;
}

.login-box {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 注册表单特殊样式 */
.register-box {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 250px;
    width: 600px;
}

/* --- 头部 Logo --- */
.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.login-title {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 13px;
    color: #909399;
    margin-top: 4px;
}

/* --- 表单样式 --- */
.el-form-item__label {
    font-weight: 600;
    color: #606266;
    text-align: left;
    font-size: 14px;
}

.el-input__wrapper {
    border-radius: 20px;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    transition: all 0.3s;
    background-color: #fff;
    padding: 8px 15px;
}

.el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #409EFF inset;
}

.el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px #409EFF inset !important;
}

/* --- 按钮样式 --- */
.el-button--primary {
    background: linear-gradient(90deg, #409EFF 0%, #66b1ff 100%);
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    padding: 15px 0;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(64, 158, 255, 0.4);
}

.el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.6);
}

/* 内联样式转换 */
.login-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.login-button-container {
    text-align: center;
    margin-top: 25px;
}

.login-button {
    width: 50%;
    padding: 16px 0;
    font-size: 16px;
    letter-spacing: 2px;
}

/* --- 注册入口链接 --- */
.register-link-container {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.register-link {
    color: #909399;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.register-link:hover {
    color: #409EFF;
    text-decoration: underline;
}

/* --- 表单行布局（双列） --- */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-row .el-form-item {
    flex: 1;
    margin-bottom: 18px;
}

.select-full-width {
    width: 100%;
}

/* --- 按钮容器 --- */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.button-width-150 {
    width: 150px;
}

.btn-return,
.btn-confirm {
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

.btn-confirm {
    background: linear-gradient(90deg, #67C23A 0%, #85ce61 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(103, 194, 58, 0.4);
}

.btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(103, 194, 58, 0.6);
    transform: translateY(-2px);
}

/* --- 权限说明 --- */
.permission-tip {
    text-align: center;
    color: #909399;
    font-size: 13px;
    margin-top: 15px;
    padding: 10px;
    background: #f5f7fa;
    border-radius: 6px;
}

/* --- 备案号样式 --- */
.icp-footer {
    text-align: center;
     padding-top: 15px;
    border-top: 1px solid #eee;
}

.icp-footer a {
    color: #909399;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.icp-footer a:hover {
    color: #409EFF;
    text-decoration: underline;
}

/* ========== 移动端优化 ========== */
@media (max-width: 768px) {
    .login-wrapper {
        max-width: 100%;
        padding: 15px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .register-box {
        padding: 20px 20px 15px;
    }
    
    .login-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-title {
        font-size: 20px;
        text-align: center;
    }
    
    .login-subtitle {
        font-size: 12px;
        text-align: center;
    }
    
    .login-button {
        width: 100%;
        padding: 14px 0;
        font-size: 15px;
        letter-spacing: 1px;
    }

    /* 注册表单移动端适配 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-width-150 {
        width: 100%;
    }
    
    .permission-tip {
        font-size: 12px;
        padding: 8px;
    }
    
    .icp-footer {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .icp-footer a {
        font-size: 11px;
    }
}