/*
 * @Author: Junchen Yi
 * @Date: 2025-12-24 18:03:37
 * @LastEditors: Junchen Yi
 * @LastEditTime: 2026-01-17 14:57:48
 * 
 * Copyright (c) 2025 by Junchen Yi, All Rights Reserved. 
 */
 body{
    margin: 0;
        background-color: #f5f5f7;
 } 
 p{
    margin: 0;
 }
.login{
    /* background-image: url(../../img/yueying_background.png); */
    min-height: 100vh;                 /* 充满整个视口高度 */
    width: 100%;
    display: flex;
    justify-content: center;           /* 水平居中 */
    align-items: center;               /* 垂直居中 */
    background-color: #f5f5f7;
    padding: 16px;                     /* 移动端留白，防止贴边 */
    box-sizing: border-box;
}
.login-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;                  /* 桌面端最大宽度 */
    box-sizing: border-box;
      box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 16px 32px rgba(0, 0, 0, 0.08);
}
.login-card-top{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.login-card-logo{

}
.login-card-logo img{
    width: 120px;
    height: 120px;
}
.login-card-title{

}
.login-card-title p{
    font-weight: 800;
    margin: 0;
    font-size: 21px;
}
.login-card-subtitle{

}
.login-card-subtitle p{
    margin-top: 5px;
    color: #6d727f;
}

/* 表单整体 */
.login-form{
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 每一组：label + input */
.login-field{
  width: 100%;
}

.login-label{
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    margin-left: 14px;

}

/* 圆角输入框 + 左侧 icon */
.login-input-wrap{
  position: relative;
  width: 100%;
}

.login-input-icon{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b94a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.login-input{
    width: 100%;
    height: 50px;
    border-radius: 40px;
    border: 1px solid #d9dee6;
    background: #fbfbfd;
    padding: 0 18px 0 56px;
    font-size: 18px;
    font-weight: 400;
    color: #111827;
    outline: none;
    box-sizing: border-box;
}

.login-input::placeholder{
  color: #9aa3b2;
  font-weight: 400;
}

.login-input:focus{
  border-color: rgba(10, 100, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 100, 255, 0.12);
  background: #ffffff;
}

/* 登录按钮（大蓝块） */
.login-btn{
width: 100%;
    height: 50px;
    border: 0;
    border-radius: 28px;
    background: var(--app-primary);
    color: var(--app-primary-text);
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
}

.login-btn:active{
  transform: translateY(1px);
}

.login-forgot{
    display: block;
    text-align: center;
    /* margin-top: 10px; */
    color: #0a64ff;
    text-decoration: none;
    font-size: 14px;
    /* font-weight: 600;*/
}

.login-forgot:hover{
  text-decoration: underline;
}
/* ===== 验证码行 ===== */
.login-captcha-row{
  display: flex;
  gap: 16px;
  align-items: center;
}

/* 让验证码输入框占满剩余空间 */
.login-captcha-row .login-input-wrap{
  flex: 1;
}

/* 右侧验证码块 */
.login-captcha-box{
    width: 150px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid #d9dee6;
    background: #fff;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 验证码图片本体 */
.captcha-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-captcha-box:hover{
  background: linear-gradient(180deg, #e9edf3, #dfe4ea);
}

/* 提示文字 */
.login-captcha-hint{
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  margin-left: 14px;
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px){
  .login-card{
    border-radius: 20px;
    padding: 18px;
    max-width: 420px;
  }

  .login-label{
    font-size: 14px;
    margin-bottom: 10px;
  }

  .login-input{
    height: 50px;
    font-size: 18px;
    padding-left: 52px;
  }

  .login-btn{
    height: 50px;
    font-size: 18px;
    border-radius: 28px;
  }

  .login-forgot{
    font-size: 12px;
  }

    .login-captcha-row{
    gap: 12px;
  }

  .login-captcha-box{
        min-width: 96px;
        height: 50px;
        font-size: 18px;
  }
}