/* Modern Medical Statistics Login Theme */

:root {
  --primary-blue: #4A90E2;
  --secondary-blue: #5FB6E7;
  --light-blue: #EBF5FF;
  --pale-blue: #7CC4ED;      /* 更淡的蓝色 */
  --soft-purple: #8B9FE8;
  --soft-cyan: #6CDFCF;
  --soft-pink: #FF9ECD;
  --pale-purple: #B5C4F4;   /* 淡紫色 */
  --pale-cyan: #98E8DE;     /* 淡青色 */
  --pale-pink: #FFB5DB;     /* 淡粉色 */
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --text-primary: #2C3E50;
  --shadow-color: rgba(74, 144, 226, 0.1);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1) translateX(0) rotate(0);
  }
  50% {
    transform: translateY(-30px) scale(1.02) translateX(20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(1200px circle at 0% 0%, rgba(181, 196, 244, 0.15) 0%, transparent 70%),
    radial-gradient(1000px circle at 100% 0%, rgba(124, 196, 237, 0.12) 0%, transparent 70%),
    radial-gradient(1400px circle at 50% -20%, rgba(152, 232, 222, 0.1) 0%, transparent 70%),
    radial-gradient(1300px circle at 100% 100%, rgba(108, 223, 207, 0.15) 0%, transparent 70%),
    radial-gradient(1100px circle at 0% 100%, rgba(139, 159, 232, 0.12) 0%, transparent 70%),
    radial-gradient(1600px circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, 
      rgba(124, 196, 237, 0.5) 0%, 
      rgba(152, 232, 222, 0.5) 30%,
      rgba(181, 196, 244, 0.5) 70%,
      rgba(255, 181, 219, 0.5) 100%
    );
  background-attachment: fixed;
  backdrop-filter: blur(40px);
}

.gateway-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.gateway-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(150px circle at 15% 15%, rgba(181, 196, 244, 0.15) 0%, transparent 100%),
    radial-gradient(200px circle at 85% 25%, rgba(152, 232, 222, 0.12) 0%, transparent 100%),
    radial-gradient(180px circle at 75% 85%, rgba(255, 181, 219, 0.12) 0%, transparent 100%),
    radial-gradient(250px circle at 25% 80%, rgba(124, 196, 237, 0.12) 0%, transparent 100%);
  filter: blur(25px);
  pointer-events: none;
  z-index: -1;
}

.gateway-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(40px circle at 20% 30%, rgba(124, 196, 237, 0.4) 0%, transparent 100%),
    radial-gradient(35px circle at 80% 20%, rgba(152, 232, 222, 0.3) 0%, transparent 100%),
    radial-gradient(50px circle at 40% 70%, rgba(181, 196, 244, 0.35) 0%, transparent 100%),
    radial-gradient(25px circle at 65% 60%, rgba(124, 196, 237, 0.3) 0%, transparent 100%),
    radial-gradient(45px circle at 85% 85%, rgba(152, 232, 222, 0.35) 0%, transparent 100%),
    radial-gradient(30px circle at 10% 80%, rgba(124, 196, 237, 0.4) 0%, transparent 100%);
  filter: blur(3px);
  animation: pulse 4s ease-in-out infinite;
}

.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
  z-index: 0;
  backdrop-filter: blur(2px);
}

.bubble:nth-child(1) {
  width: 200px;
  height: 200px;
  left: -5%;
  top: 10%;
  background-color: rgba(124, 196, 237, 0.15);
  animation: float 15s ease-in-out infinite;
}

.bubble:nth-child(2) {
  width: 180px;
  height: 180px;
  right: -8%;
  top: 15%;
  background-color: rgba(152, 232, 222, 0.12);
  animation: float 18s ease-in-out infinite;
}

.bubble:nth-child(3) {
  width: 250px;
  height: 250px;
  left: 15%;
  top: -10%;
  background-color: rgba(181, 196, 244, 0.15);
  animation: float 20s ease-in-out infinite;
}

.bubble:nth-child(4) {
  width: 220px;
  height: 220px;
  right: 12%;
  bottom: -8%;
  background-color: rgba(124, 196, 237, 0.12);
  animation: float 17s ease-in-out infinite;
}

.bubble:nth-child(5) {
  width: 160px;
  height: 160px;
  left: 25%;
  bottom: 15%;
  background-color: rgba(152, 232, 222, 0.15);
  animation: float 16s ease-in-out infinite;
}

.bubble:nth-child(6) {
  width: 190px;
  height: 190px;
  right: 28%;
  top: 25%;
  background-color: rgba(181, 196, 244, 0.12);
  animation: float 19s ease-in-out infinite;
}

.halo-form-wrapper {
  background: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 
    0 10px 40px rgba(124, 196, 237, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(152, 232, 222, 0.15);
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  border: none;
  overflow: hidden;
}

.login-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--gray-100);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px var(--shadow-color);
  outline: none;
}

.btn-login {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
}

.medical-icons {
  display: none;
}

.medical-icon {
  display: none;
}

.form-title {
  display: none;
}

/* Holographic effects */
.holographic-element {
  position: relative;
  overflow: hidden;

}

input#username,input#plainPassword {
  border: none !important;
}

.holographic-element::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(45deg);
  animation: holographic 6s infinite linear;
  pointer-events: none;
  z-index: -1;
}

@keyframes holographic {
  0% {
    transform: translateX(-50%) rotate(45deg);
  }
  100% {
    transform: translateX(50%) rotate(45deg);
  }
}

/* 登录方式切换样式 */
.login-type-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 1rem;
  z-index: 2;
}

.login-type-item {
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.login-type-item.active {
  color: var(--primary-blue);
  font-weight: 600;
  position: relative;
}

.login-type-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.qr-code-wrapper {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.qr-code-wrapper.active {
  display: flex;
}

.qr-code {
  width: 180px;
  height: 180px;
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.qr-code-text {
  color: var(--text-primary);
  font-size: 0.875rem;
  text-align: center;
  max-width: 80%;
}

.logo-image {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 auto 1.5rem;
} 

.qr-code-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-code-trigger:hover {
    transform: scale(1.05);
}

.qr-code-trigger i {
    font-size: 24px;
    color: #666;
}

.qr-code-label {
    font-size: 12px;
    color: #666;
}

.qr-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qr-code-modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.qr-code-modal-content img {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
}

.qr-login-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-login-btn:hover {
  background: var(--secondary-blue);
  transform: translateY(-1px);
}

.qr-login-btn .i-hugeicons-qr-code {
  font-size: 16px;
}

.corner-qr {
  position: absolute;
  top: -1px;
  right: -1px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 0 20px 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.8); */
}

.corner-qr:hover {
  background: rgba(74, 144, 226, 0.2);
}

.corner-text {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.6;
}

/* .corner-qr .i-hugeicons-qr-code {
  font-size: 16px;
  color: var(--primary-blue);
} */

.qr-board-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-board-content {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.qr-board-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.qr-board-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px 12px;
  margin: 0 auto 1.5rem;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  transition: all 0.3s ease;
  width: fit-content;
}

.back-btn:hover {
  color: #333;
}

.qr-board {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px 20px 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform-origin: bottom;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.qr-board-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.qr-code-container {
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qr-code-img {
  width: 160px;
  height: 160px;
  display: block;
}

.qr-code-tip {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}