/* assets/css/sm-register-form.css */
.sm-register-form-container {
    max-width: 400px;
    margin: 20px auto;
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
}

.sm-register-form-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(231, 9, 9, 0.1);
}

.sm-register-form-wrap .error {
    color: #E6492D;
    background: #fdd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sm-register-form-wrap label {
    display: block;
    margin-bottom: 5px;
}

.sm-register-form-wrap input[type="text"],
.sm-register-form-wrap input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.sm-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
    flex-wrap: nowrap;
}

.sm-code-group input[type="text"] {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 120px); /* 确保输入框不会超过容器宽度 */
    height: 36px;
    padding: 8px;
    border: 1px solid #b1a9a9;
    border-radius: 4px;
    box-sizing: border-box;
}

.sm-code-group input[type="submit"] {
    white-space: nowrap;
    padding: 0 12px;
    background: #d64f37;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 36px;
    font-size: 18px;
    flex-shrink: 0;
    width: 200px; /* 设置按钮的固定宽度 */
}

/* 如果需要更强的优先级 */
.sm-register-form-wrap .sm-code-group input[type="text"] {
    flex: 1 !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 8px !important;
    border: 1px solid #e0dcdb !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-size: 18;
}
.sm-register-form-wrap .button-primary {
    font-size: 18px;
    padding: 10px 15px;
    width: 100%;
    background: #d64f37;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.sm-register-form-wrap .button-primary:hover {
    background: #d6482f;
}

.redirect-notice {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 16px;
}

.redirect-notice a {
    color: #155724;
    font-weight: bold;
    text-decoration: underline;
}
.login-container {
  padding: 10px;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: 400px;
}
.login-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tab {
  padding: 10px 40px 10px 40px;
font-size: 15px;
  background-color: #f7f4f5;
  color: rgb(228, 11, 11);
  border: none;
  cursor: pointer;
  border-radius: 5px 5px 5px 5px;
}

.tab.active {
  background-color: #e74c3c;
  color: #ffffff;
}

.tab:hover {
  opacity: 0.5;
}

.tab.active:hover {
  opacity: 0.8;
}

/* 表单容器 */
.sm-registration-form {
    max-width: 420px;
    margin: 0 auto;
   /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;*/
}

/* 通用输入框样式 */
.form-control {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    margin-top: 6px;
}

.form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* 表单项分组 */
.form-group {
    margin-bottom: 20px;
}

/* 验证码行布局 */
.sm-code-group {
    display: flex;
    gap: 10px; /* 按钮与输入框间距 */
    align-items: center;
}

.sm-code-group .code-input {
    flex: 1; /* 输入框占满剩余空间 */
}

.send-code-btn {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 14px;
}

/* 提交按钮 */
.btn-register {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background-color: #007cba;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #005a87;
}

/* 错误提示 */
.error-message {
    display: none;
    color: #d63638;
    font-size: 14px;
    margin-top: 6px;
}

.error-message.visible {
    display: block;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .sm-registration-form {
        padding: 0 15px;
    }
    .form-control,
    .send-code-btn {
        font-size: 15px;
    }
}
