/* TrendForce custom styles (empty, uses mostly inline style from login.ftl) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans TC", sans-serif;
}

body {
  background-color: #f5f5f5;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  width: 900px;
  height: 600px;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.left-panel {
  width: 40%;
  background: linear-gradient(135deg, #adadad 0%, #111111 100%);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.logo-container {
  width: 150px;
  margin-bottom: 40px;
}

.left-content {
  margin-top: auto;
  margin-bottom: 60px;
}

.left-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 600;
}

.left-content p {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.6;
}

.right-panel {
  width: 60%;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 700;
}

.form-subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #84c100;
  box-shadow: 0 0 0 2px rgba(132, 193, 0, 0.2);
}

.forgot-password {
  text-align: right;
  margin-top: 8px;
}

.forgot-password a {
  color: #84c100;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: #6a9a00;
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 14px;
  background-color: #84c100;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.login-button:hover {
  background-color: #6a9a00;
}

.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

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

.divider span {
  padding: 0 15px;
  color: #777;
  font-size: 14px;
}

.google-button {
  width: 100%;
  padding: 12px;
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, box-shadow 0.3s;
  gap: 10px;
}

.google-button:hover {
  background-color: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-button svg {
  margin-right: 10px;
}

.register-link {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
  color: #666;
}

.register-link a {
  color: #84c100;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.register-link a:hover {
  color: #6a9a00;
  text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 900px) {
  .container {
    width: 95%;
    height: auto;
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    padding: 30px;
    min-height: 200px;
  }

  .right-panel {
    width: 100%;
    padding: 30px;
  }

  .logo-container {
    width: 120px;
    margin-bottom: 20px;
  }

  .left-content {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    box-shadow: none;
    border-radius: 0;
  }

  .left-panel {
    padding: 20px;
    min-height: 180px;
  }

  .right-panel {
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .form-subtitle {
    margin-bottom: 20px;
  }
}

/* Account Exists Page Styles */
.status-icon {
  text-align: center;
  margin-bottom: 20px;
}

.message-container {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0 30px 0;
}

.main-message {
  color: #92400e;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.main-message strong {
  color: #78350f;
  font-weight: 600;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.option-button {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.option-button:hover {
  border-color: #84c100;
  box-shadow: 0 4px 12px rgba(132, 193, 0, 0.15);
  transform: translateY(-2px);
}

.option-button.primary:hover {
  background-color: #f0f9ff;
  border-color: #0ea5e9;
}

.option-button.secondary:hover {
  background-color: #f0fdf4;
  border-color: #84c100;
}

.button-content {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.button-content svg {
  margin-right: 12px;
  color: #6b7280;
}

.option-button.primary .button-content svg {
  color: #0ea5e9;
}

.option-button.secondary .button-content svg {
  color: #84c100;
}

.button-content span {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.button-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  margin-left: 32px;
}

.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.back-link a:hover {
  color: #84c100;
  text-decoration: underline;
}

/* 響應式設計 - Account Exists Page */
@media (max-width: 480px) {
  .message-container {
    padding: 15px;
    margin: 15px 0 20px 0;
  }

  .main-message {
    font-size: 15px;
  }

  .option-button {
    padding: 15px;
  }

  .button-content span {
    font-size: 16px;
  }

  .button-description {
    font-size: 13px;
    margin-left: 28px;
  }
}

/* Update Password Page Styles */
.warning-message {
  display: flex;
  align-items: center;
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0 30px 0;
  color: #92400e;
  font-size: 15px;
}

.warning-message svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.password-form {
  width: 100%;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  width: 100%;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: #374151;
}

.password-strength {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.strength-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
}

.strength-indicator.weak {
  background-color: #ef4444;
}

.strength-indicator.medium {
  background-color: #f59e0b;
}

.strength-indicator.strong {
  background-color: #10b981;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  accent-color: #3b82f6;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 15px;
  color: #374151;
  cursor: pointer;
}

.submit-button {
  width: 100%;
  padding: 14px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.submit-button:hover {
  background-color: #2563eb;
}

/* 響應式設計 - Update Password Page */
@media (max-width: 480px) {
  .warning-message {
    padding: 12px;
    font-size: 14px;
  }

  .password-toggle {
    right: 8px;
  }

  .strength-indicator {
    right: 40px;
  }

  .checkbox-group {
    margin: 20px 0;
  }

  .checkbox-group label {
    font-size: 14px;
  }
}

/* logout-confirm */
.single-column-container {
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid #f0f0f0;
  display: block;
}

.illustration-container {
  text-align: center;
  margin-bottom: 32px;
}

.illustration-container img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.primary-button {
  width: 100%;
  padding: 16px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.primary-button:hover {
  background: #333;
  transform: translateY(-1px);
}

.primary-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}