/* Login & Transfer Layout */
.login-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.login-container {
  width: 85%;
  max-width: 360px;
  text-align: center;
  padding-bottom: 10px;
}

.brand-logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary, #be1210);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.brand-logo img {
  width: 125px;
}

.app-description {
  font-size: 15px;
  color: var(--text-muted, #666666);
  margin-bottom: 30px;
  line-height: 1.4;
  padding: 0 20px;
}

.login-card {
  background: var(--bg-card, #f8f9fa);
  border-radius: 16px;
  padding: 25px;
  border: 1.5px solid var(--border-light, #ebebeb);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.login-card button {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  background-color: var(--color-primary, #be1210);
  color: var(--text-light, #ffffff);
  box-shadow: 0 4px 12px rgba(190, 18, 16, 0.25);
}

.login-card button:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Modern iOS Input Group */
.input-group {
  background: var(--bg-body);
  border-radius: 12px;
  padding: 2px 0;
  border: 1px solid var(--border-input, #ced4da);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.input-group input[type="password"] {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 24px;
  letter-spacing: 3px;
  text-align: center;
  outline: none;
  color: var(--text-main, #333333);
  height: 50px;
  box-sizing: border-box;
  font-family: monospace;
}

.input-group select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 15px;
  font-size: 16px;
  outline: none;
  color: var(--text-main, #333333);
  height: 50px;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.input-group input[type="password"]::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  color: var(--text-subtle, #868e96);
  line-height: normal;
  transform: translateY(2px);
}

.error-message {
  color: #ff3b30;
  font-size: 15px;
  margin-bottom: 20px;
  background: rgba(255, 59, 48, 0.1);
  padding: 12px;
  border-radius: 10px;
  font-weight: 500;
}

/* Lottie Coloring Filter for #be1210 */
#loading-animation {
  width: 180px;
  height: 180px;
  filter: invert(13%) sepia(84%) saturate(4586%) hue-rotate(349deg) brightness(87%) contrast(96%);
}

.footer {
  position: absolute;
  bottom: 35px;
  font-size: 13px;
  color: #8e8e93;
  font-weight: 500;
  text-align: center;
}

.footer p {
  text-align: center;
  margin-block-end: 0.8em;
  margin-block-start: 0.8em;
}

/* QR Code Scanner UI */
.login-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.login-row .input-group {
  flex: 1;
  margin-bottom: 0;
}

#qr-scan-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 12px;
  background-color: var(--color-primary, #be1210);
  color: var(--text-light, #ffffff);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(190, 18, 16, 0.25);
  flex-shrink: 0;
  transition: transform 0.1s, opacity 0.2s, background-color 0.2s;
}

#qr-scan-btn:hover {
  background-color: var(--color-primary-dark, #a00f0d);
}

#qr-scan-btn:active {
  transform: scale(0.95);
  opacity: 0.95;
}

#qr-scan-btn svg {
  width: 24px;
  height: 24px;
}

/* Modal styling */
#qr-scanner-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#qr-scanner-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.scanner-container {
  position: relative;
  width: 90%;
  max-width: 400px;
  aspect-ratio: 1;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

#scanner-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Status Bar & Close Button */
.scanner-controls {
  width: 90%;
  max-width: 400px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#qr-scanner-status {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#qr-scanner-status.status-error {
  background: rgba(255, 59, 48, 0.2);
  color: #ff453a;
  border-color: rgba(255, 59, 48, 0.3);
}

#qr-scanner-status.status-success {
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
  border-color: rgba(48, 209, 88, 0.3);
}

.scanner-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
}

.scanner-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.scanner-close-btn:active {
  transform: scale(0.98);
}

