
* {
    box-sizing: border-box; /* 包括 padding 和 border 的总宽度在内 */
    margin: 0; /* 清除默认的外边距 */
    padding: 0; /* 清除默认的内边距 */
}

/* 设置根元素字体大小为16px，方便后续使用 rem 进行相对大小设置 */
html {
    font-size: 16px; /* 根元素字体大小设置为16px */
}

/* 基础样式：设置 body 的字体、背景颜色和对齐方式 */
body {
    font-family: Arial, sans-serif; /* 设置字体 */
    background-color: #f7f9fc; /* 背景颜色 */
    display: flex; /* 使用 flex 布局 */
    width: 100%; /* 宽度占满父容器 */
    height: 100vh;
    color: #333; /* 字体颜色 */
    border: 0.0625rem solid #ddd; /* 外边框，宽度为1px */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); /* 阴影效果 */
    border-radius: 0.75rem 0.75rem 0 0; /* 圆角效果 */
    z-index: 10; /* 设置层级，保证元素在最上层 */
}

/* 背景图片设置 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/templates/cloud_pc/img/user/icon2.png');
    background-size: cover;
    background-position: center;
    /* filter: blur(8px); */
    z-index: -1;
}

.login-container {
    display: flex;
    align-items: center;
    position: fixed; /* 固定定位 */
    top: 10%;
    left: 5%;
}

.background-bar {
    background-color: white; /* 容器背景颜色为白色 */
    border-radius: 10px 0 0 10px; /* 圆角 */
    width: 100%; /* 容器宽度占满父元素 */
    height: 100%;
    width: 450px; /* 限制最大宽度 */
    height: 500px;
}

.background-bar img {
    width: 100%;
    height: 100%;
}

/* 容器样式，包含表单和内容 */
.login-bar {
    background-color: white; /* 容器背景颜色为白色 */
    padding: 1rem; /* 内边距，30px */
    border-radius: 0 10px 10px 0; /* 圆角 */
    height: 500px;
    width: 100%; /* 容器宽度占满父元素 */
    width: 350px; /* 限制最大宽度 */
}
/* 标题样式 */
h3 {
    text-align: center;
    margin-bottom: 20px; 
    color: #333; 
}
/* 容器样式，包含表单和内容 */
.os-login-body {
    max-width: 450px;
    background-color: #fff; 
    padding: 1rem; 
    margin: 0 10px;
    border-radius: 10px;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); 
    width: 100%; 
}
.os-login-head-bgimg {
    width: 100%;
    height: 200px;
    background-size: cover; /* 设置背景图片的缩放模式为填充 */
}
/* 标题样式 */
.os-login-head {
    text-align: center; 
    margin: 1rem 0;
    color: #333; 
}
.os-form-group {    
    margin-bottom: 20px; 
    padding: 0 10px;
}

.os-form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.os-form-group input {
    width: 100%; 
    height: 40px;
    padding: 10px; 
    margin-top: 8px; 
    border-radius: 6px; 
    border: 1px solid #ddd; 
    font-size: 14px; 
}

/* 输入框获取焦点时的样式 */
.os-form-group input:focus {
    border-color: #328df5;
    box-shadow: 0 0 5px rgba(50, 141, 245, 0.5);
    outline: none;
}

.os-btn-group {
    display: flex;
    justify-content: center;
    padding: 0 10px;
    gap: 20px;
    margin-bottom: 15px;
}

.os-form-btn-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    gap: 10px;
    margin-bottom: 15px;
}
/* 按钮样式，包括登录、注册 */
.os-form-btn-blue {
    width: 100%; 
    height: 40px;
    background-color: #007BFF;
    color: white; 
    padding: 10px; 
    border-radius: 6px; /* 设置圆角 */
    border: none; 
    cursor: pointer; 
    transition: background-color 0.3s ease;
}

/* 鼠标悬停时的样式 */
.os-form-btn-blue:hover {
    background-color: #007BFF; 
}

/* 第三方登录按钮容器 */
.os-tdlogin-card {
    display: flex;
    justify-content: center;
    gap: 50px;
}

/* 第三方登录按钮样式 */
.os-tdlogin-card button {
    border: none;
    background-color: transparent; 
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%; 
}

/* 鼠标悬停时第三方按钮的样式 */
.os-tdlogin-card button:hover {
    background-color: rgba(0, 123, 255, 0.1); 
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* 第三方登录图标样式 */
.os-tdlogin-card .icon {
    width: 2.5rem;
    height: 2.5rem; 
    border-radius: 50%; 
    object-fit: cover; 
}

/* 忘记密码和额外链接的样式 */
.os-links {
    text-align: center;
    margin-top: 0.625rem; 
}

/* 额外链接样式，如忘记密码 */
.os-links a {
    color: #007BFF; 
    text-decoration: none; 
    display: block;
    margin: 0.3125rem 0; 
}

/* 鼠标悬停在额外链接时的样式 */
.os-links a:hover {
    text-decoration: underline;
}

/* 弹性输入框样式 */
.os-input-group {
    display: flex; 
    align-items: center;   
}

/* 验证码输入框样式 */
.os-input-group input {
    width: 100%;
    height: 40px;
}

/* 验证码图片样式 */
.os-input-group img {
    margin-left: 10px; 
    height: 40px; 
    margin-top: 8px;
    border-radius: 6px; 
    cursor: pointer;
}