*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: #515a6e;
  -webkit-font-smoothing: antialiased;
  background: #f5f7f9;
}

/* ── 页面整体布局 ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── 顶部导航 ── */
.ivu-layout-header {
  height: 64px; line-height: 64px; padding: 0 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);
  flex-shrink: 0;
}
.menu {
  display: flex; align-items: center;
  list-style: none; height: 64px;
}
.layout-logo {
  font-size: 18px; color: #000; font-weight: bold; flex: 1;
}
.ivu-btn {
  display: inline-block; height: 32px; line-height: 30px;
  padding: 0 16px; font-size: 14px; border-radius: 4px;
  cursor: pointer; border: 1px solid; background: transparent;
  transition: all .2s; vertical-align: middle;
}
.ivu-btn-success       { border-color: #19be6b; color: #19be6b; float: right; margin-top: 16px; margin-right: 20px; }
.ivu-btn-success:hover { background: #19be6b; color: #fff; }
.ivu-btn-primary       { border-color: #2d8cf0; color: #2d8cf0; }
.ivu-btn-primary:hover { background: #2d8cf0; color: #fff; }
.ivu-btn-primary-solid { background: #2d8cf0; color: #fff; border-color: #2d8cf0; width: 100%; height: 40px; font-size: 14px; border-radius: 4px; }
.ivu-btn-primary-solid:hover { background: #57a3f3; border-color: #57a3f3; }

/* ── 表单容器 ── */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 4px;
  padding: 32px 40px 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.auth-title {
  text-align: center;
  font-size: 22px;
  color: #17233d;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ── iView Form 样式 ── */
.ivu-form-item {
  margin-bottom: 20px;
  vertical-align: top;
}
.ivu-form-item-label {
  display: block;
  text-align: right;
  padding: 9px 12px 9px 0;
  color: #515a6e;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.ivu-form-label-left .ivu-form-item-label {
  text-align: left;
}
.ivu-form-item-content { position: relative; }

/* ── iView Input ── */
.ivu-input-wrapper { display: block; width: 100%; position: relative; }
.ivu-input {
  display: block; width: 100%; height: 36px;
  padding: 4px 8px; font-size: 14px; line-height: 1.5;
  color: #515a6e; background: #fff;
  border: 1px solid #dcdee2; border-radius: 4px;
  outline: none; transition: border .2s;
}
.ivu-input:focus { border-color: #57a3f3; box-shadow: 0 0 0 2px rgba(45,140,240,.2); }
.ivu-input::placeholder { color: #c5c8ce; }

/* ── 发送验证码行 ── */
.code-row { display: flex; gap: 10px; }
.code-row .ivu-input { flex: 1; }
.ivu-btn-code {
  height: 36px; padding: 0 14px; font-size: 14px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
  background: #fff; border: 1px solid #dcdee2; color: #515a6e; cursor: pointer;
  transition: all .2s;
}
.ivu-btn-code:hover:not(:disabled) { border-color: #57a3f3; color: #2d8cf0; }
.ivu-btn-code:disabled { color: #c5c8ce; cursor: not-allowed; }

/* ── 提交按钮 ── */
.submit-btn {
  width: 100%; height: 40px;
  background: #2d8cf0; color: #fff;
  border: none; border-radius: 4px;
  font-size: 14px; cursor: pointer;
  transition: background .2s; margin-top: 4px;
}
.submit-btn:hover { background: #57a3f3; }
.submit-btn:disabled { background: #a0cfff; cursor: not-allowed; }

/* ── 底部链接 ── */
.auth-links {
  text-align: center; margin-top: 16px; font-size: 14px; color: #808695;
}
.auth-links a { color: #2d8cf0; }
.auth-links a:hover { color: #57a3f3; }
.auth-links .sep { margin: 0 8px; color: #dcdee2; }

/* ── 错误提示 ── */
.ivu-form-item-error .ivu-input { border-color: #ed4014; }
.ivu-form-item-error-tip {
  color: #ed4014; font-size: 12px; padding-top: 4px;
  position: absolute; top: 100%; left: 0;
}

/* ── Alert消息 ── */
.msg-alert {
  padding: 8px 12px; border-radius: 4px; margin-bottom: 16px;
  font-size: 14px; display: none;
}
.msg-alert.show { display: block; }
.msg-success { background: #f0faef; border: 1px solid #b3e19d; color: #19be6b; }
.msg-error   { background: #ffefe6; border: 1px solid #fab696; color: #ed4014; }
