/* 大沙河小李家果园 · 管理后台登录 */
:root {
  --orchard-primary: #E85D4C;
  --orchard-primary-end: #F4A261;
  --orchard-leaf: #3D8B5F;
  --orchard-brand-green: #2F6B3A;
  --orchard-bg: #FFF8F3;
  --orchard-text: #1F2924;
  --orchard-muted: #8A8F8C;
  --orchard-border: #F0E6DE;
}

body.orchard-signin.signin {
  min-height: 100vh;
  margin: 0;
  background: var(--orchard-bg) !important;
  overflow-x: hidden;
}

.orchard-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, rgba(232, 93, 76, 0.28) 0%, rgba(244, 162, 97, 0.18) 42%, rgba(61, 139, 95, 0.22) 100%),
    url(../img/orchard-hero.jpg) center / cover no-repeat;
  transform: scale(1.04);
  animation: orchard-bg-drift 18s ease-in-out infinite alternate;
}

.orchard-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255, 248, 243, 0.55) 0%, rgba(255, 248, 243, 0.82) 70%, rgba(255, 248, 243, 0.94) 100%);
  pointer-events: none;
}

.orchard-panel.signinpanel {
  position: relative;
  z-index: 2;
  width: min(420px, 92vw);
  margin: 8vh auto 4vh;
  color: var(--orchard-text);
  animation: orchard-rise 0.7s ease-out both;
}

.orchard-brand {
  text-align: center;
  margin-bottom: 22px;
}

.orchard-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(47, 107, 58, 0.18);
  background: #fff;
  animation: orchard-logo-in 0.9s ease-out both;
}

.orchard-name {
  margin: 16px 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orchard-brand-green);
  line-height: 1.25;
}

.orchard-tagline {
  margin: 0;
  font-size: 14px;
  color: var(--orchard-muted);
  letter-spacing: 0.12em;
}

.orchard-form {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--orchard-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(31, 41, 36, 0.08) !important;
  padding: 28px 28px 24px !important;
  backdrop-filter: blur(8px);
}

.orchard-form-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--orchard-text);
}

.orchard-form-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--orchard-muted);
}

.orchard-signin .signinpanel .form-control {
  height: 44px !important;
  border-radius: 10px !important;
  border: 1px solid var(--orchard-border);
  padding: 10px 40px 10px 14px !important;
  margin-top: 14px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orchard-signin .signinpanel .form-control:focus {
  border-color: var(--orchard-primary) !important;
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.15);
}

.orchard-signin .signinpanel .uname {
  background: #fff url(../img/user.png) no-repeat 95% center;
}

.orchard-signin .signinpanel .pword {
  background: #fff url(../img/locked.png) no-repeat 95% center;
}

.orchard-signin .signinpanel .code {
  margin: 0 !important;
  background: #fff;
  flex: 1;
  min-width: 0;
  padding-right: 14px !important;
}

/* 验证码同行对齐 */
.orchard-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.orchard-captcha .form-control {
  margin-top: 0 !important;
  height: 44px !important;
}
.orchard-captcha-img {
  flex: 0 0 120px;
  width: 120px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--orchard-border);
  background: #F7FAF7;
  overflow: hidden;
  text-decoration: none !important;
}
.orchard-signin .imgcode {
  width: 120px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: #F7FAF7;
  transition: opacity 0.2s ease;
}
.orchard-signin .imgcode.is-loading {
  opacity: 0.45;
}

/* 记住我 */
.orchard-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  cursor: pointer;
  user-select: none;
  font-weight: 400;
}
.orchard-remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.orchard-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #C9D4CC;
  background: #fff;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 18px;
  transition: all 0.15s ease;
}
.orchard-check:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}
.orchard-remember input:checked + .orchard-check {
  background: var(--orchard-leaf);
  border-color: var(--orchard-leaf);
}
.orchard-remember input:checked + .orchard-check:after {
  transform: rotate(45deg) scale(1);
}
.orchard-remember-text {
  color: var(--orchard-muted);
  font-size: 13px;
  line-height: 1;
}
.orchard-remember:hover .orchard-check {
  border-color: var(--orchard-leaf);
}

/* 兼容旧 class，避免 login.min.css 干扰 */
.orchard-signin .checkbox-custom {
  display: none !important;
}

.orchard-btn.btn,
.orchard-btn.btn:focus,
.orchard-btn.btn:active,
.orchard-btn.btn:hover {
  margin-top: 18px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff !important;
  background: linear-gradient(90deg, var(--orchard-primary), var(--orchard-primary-end)) !important;
  box-shadow: 0 8px 20px rgba(232, 93, 76, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.orchard-btn.btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232, 93, 76, 0.34);
}

.orchard-footer.signup-footer {
  border-top: none;
  margin: 18px 0 0;
  padding-top: 0;
  text-align: center;
  color: var(--orchard-muted);
  font-size: 12px;
  line-height: 1.7;
}

.orchard-footer .pull-left {
  float: none !important;
}

.orchard-beian {
  margin-top: 2px;
  font-size: 11px;
  color: #9aa39c;
  letter-spacing: 0.2px;
}

.orchard-beian a {
  color: #9aa39c;
  text-decoration: none;
}

.orchard-beian a:hover {
  color: #7a847e;
  text-decoration: underline;
}

.orchard-beian-sep {
  margin: 0 6px;
  color: #c5cbc6;
}

@keyframes orchard-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orchard-logo-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes orchard-bg-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media screen and (max-width: 768px) {
  .orchard-panel.signinpanel {
    width: min(400px, 92vw) !important;
    margin: 6vh auto 3vh;
    padding: 0;
  }

  .orchard-logo {
    width: 96px;
    height: 96px;
  }

  .orchard-name {
    font-size: 24px;
  }

  .orchard-form {
    padding: 22px 18px 18px !important;
  }
}
