﻿/* css/loginStyle.css */

/* ===== 娴呰壊绯?(Light Theme) ===== */
:root {
  /* 鏍稿績鑳屾櫙鑹?*/
  --bg-page: #f9fafb; /* 鏋佹祬鐏帮紝鐢ㄤ簬澶ц儗鏅?*/
  --bg-panel: #ffffff; /* 绾櫧锛岀敤浜庡崱鐗?琛ㄥ崟鍖?*/

  /* 鏂囧瓧棰滆壊 */
  --text-primary: #111827; /* 娣卞ⅷ鑹诧紝鐢ㄤ簬鏍囬 */
  --text-secondary: #6b7280; /* 涓伆锛岀敤浜庤鏄庢枃瀛?*/
  --text-placeholder: #9ca3af;

  /* 杈规涓庤緭鍏ユ */
  --border-color: #e5e7eb; /* 娴呯伆杈规 */
  --input-bg: #ffffff; /* 杈撳叆妗嗚儗鏅?*/
  --input-border: #d1d5db; /* 杈撳叆妗嗚竟妗?*/

  /* 鍝佺墝涓昏壊 */
  --accent-color: #4B8E96;
  --accent-hover: #3A7178;

  --radius-md: 12px;
  --font-main: "Inter", "Noto Sans JP", sans-serif;

  /* 闃村奖 */
  --shadow-card: -10px 0 40px rgba(0, 0, 0, 0.02);
  --shadow-btn: 0 4px 6px rgba(75, 142, 150, 0.2);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--main-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 甯冨眬妗嗘灦 ===== */
.split-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

/* 宸︿晶鍝佺墝鍖?(Desktop) */
.brand-section {
  flex: 1;
  background: linear-gradient(135deg, #e6f2f3 0%, #d1e8e9 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  overflow: hidden;
}

/* 鍙充晶琛ㄥ崟鍖?*/
.form-section {
  width: 520px;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

/* ===== 鍝佺墝鍏冪礌 ===== */
.brand-content {
  position: relative;
  z-index: 2;
}

.logo-box { display: none !important; }

.brand-title {
  font-size: 42px;
  margin: 0 0 16px;
  font-weight: 800;
  color: #4B8E96;
  letter-spacing: -1px;
}

.brand-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 440px;
  font-weight: 500;
}

.copyright {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: #9ca3af;
}

/* 鑳屾櫙鍏夋晥 */
.visual-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: #c7d2fe;
  top: -150px;
  left: -150px;
  mix-blend-mode: multiply;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: #a5f3fc;
  bottom: -100px;
  right: -100px;
  mix-blend-mode: multiply;
}

/* ===== 琛ㄥ崟缁勪欢 ===== */
.form-wrapper {
  width: 100%;
  max-width: 380px;
}

.form-header {
  margin-bottom: 32px;
  text-align: left;
}
.welcome-text {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text-primary);
}

/* Tabs */
.tabs {
  display: inline-flex;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 12px;
  width: 100%;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 48px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  font-family: var(--main-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  transition: all 0.2s;
}
input::placeholder {
  color: var(--text-placeholder);
}
input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(75, 142, 150, 0.1);
}

.password-field {
  position: relative;
}
.eye-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: none;
  border: none;
  color: var(--text-placeholder);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eye-btn:hover {
  color: var(--text-secondary);
}

/* Buttons */
.primary-btn {
  width: 100%;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.1s, background 0.2s;
}
.primary-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 10px rgba(75, 142, 150, 0.25);
}
.primary-btn:active {
  transform: scale(0.98);
}

.form-box {
  display: none;
}
.form-box.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 楠岃瘉鐮?& Ghost Button */
.with-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.ghost-btn {
  height: 48px;
  padding: 0 16px;
  background: #f3f4f6;
  border: 1px solid transparent;
  color: var(--accent-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ghost-btn:hover {
  background: #e6f2f3;
}

.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.code-input {
  text-align: center;
  padding: 0;
  width: 100%;
  font-size: 20px;
  font-weight: bold;
}

/* 璇█鍒囨崲鍣?(Light Mode) */
.lang-switcher {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 50;
}
.lang-btn {
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #4b5563;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.lang-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  width: 120px;
  display: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-direction: column;
}
.lang-menu.show {
  display: flex;
}
.lang-item {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
  text-align: left;
}
.lang-item:hover {
  background: #f3f4f6;
  color: var(--accent-color);
}

/* ===== Mobile 鍝嶅簲寮忎紭鍖?===== */
@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
  }

    .brand-section {
    flex: 0 0 auto;
    padding: 15px 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }
  .brand-content {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .logo-box { display: none !important; }
  .brand-title { font-size: 32px; margin: 0; color: #4B8E96; letter-spacing: 1px; font-weight: 800; }
  .brand-desc,
  .copyright,
  .visual-effect {
    display: none;
  }

  .form-section { width: 100%; padding: 30px 20px; flex: 1; justify-content: center; align-items: center; background: #f9fafb; box-shadow: none; min-height: 100vh; }
  .form-wrapper { width: 100%; max-width: 400px; background: #fff; padding: 30px 24px; border-radius: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02); }

  .lang-switcher { top: 20px; right: 20px; }
  .lang-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
  }
}

.status-popup {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 100;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

