/* login.css - 登录页面公用样式 */
/* 自定义样式 */
body, html {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.bg-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  max-height: 450px;
}

.login-header {
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
  padding: 15px;
  text-align: center;
  color: white;
}

.login-header h1 {
  font-size: 1.3rem;
  margin-bottom: 3px;
  font-weight: 600;
}

.login-header p {
  opacity: 0.9;
  font-size: 0.8rem;
  margin-bottom: 0;
}

.login-body {
  padding: 15px;
}

.form-group {
  margin-bottom: 0.8rem;
}

.input-group-text {
  background-color: #f8f9fe;
  border: 1px solid #e9ecef;
  border-right: none;
  padding: 0.4rem 0.6rem;
}

.form-control {
  border-left: none;
  padding-left: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.btn-login {
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
  border: none;
  padding: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  height: 38px;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(50, 50, 93, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-other {
  background-color: transparent;
  border: 1px solid #5e72e4;
  color: #5e72e4;
  padding: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  height: 34px;
  margin-top: 5px;
}

.btn-qq {
  background-color: #12B7F5;
  border: none;
  color: white;
  padding: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  height: 34px;
  width: 48%;
}

.btn-scan {
  background-color: #20c997;
  border: none;
  color: white;
  padding: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  height: 34px;
  width: 48%;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
}

.login-links a {
  color: #5e72e4;
  font-weight: 500;
}

.login-footer {
  text-align: center;
  padding: 12px;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fe;
  font-size: 0.75rem;
  color: #6c757d;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: #6c757d;
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e9ecef;
}

.divider::before {
  margin-right: 10px;
}

.divider::after {
  margin-left: 10px;
}

.custom-checkbox .custom-control-label::before {
  border-radius: 4px;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
  border-color: #5e72e4;
}

.custom-checkbox .custom-control-label {
  font-size: 0.8rem;
}

.other-login-options {
  display: none;
  margin-top: 8px;
}

.other-login-buttons {
  display: flex;
  justify-content: space-between;
  gap: 4%;
}

/* 新增：登录成功弹窗样式 */
.login-success-modal {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-success-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid #5e72e4;
}

.login-success-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5e72e4;
  margin-bottom: 5px;
}

.login-success-welcome {
  color: #6c757d;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.login-success-btn {
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.login-success-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(50, 50, 93, 0.1);
}

/* 全屏遮罩层 */
.login-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}

@media (max-width: 576px) {
  .login-card {
    margin: 20px;
    max-height: 430px;
  }
  
  .login-body {
    padding: 12px;
  }
  
  .btn-qq, .btn-scan {
    width: 48%;
  }
  
  .login-success-modal {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
}
