:root {
  --bg-base: #000000;
  --card-bg: rgba(10, 10, 10, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus-border: #6366f1;
  --input-focus-ring: rgba(99, 102, 241, 0.2);
  --primary-color: #ffffff;
  --primary-text: #000000;
  --primary-hover: #e4e4e7;
  --accent-grad: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168, 85, 247, 0.1), transparent);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.8), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  width: 48px;
  height: 48px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  text-align: center;
}

.title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  font-weight: 400;
}

.row {
  margin: 20px 0;
  position: relative;
}

.label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px 2px;
  font-weight: 500;
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input:focus {
  border-color: var(--input-focus-border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px var(--input-focus-ring), inset 0 1px 2px rgba(0,0,0,0.2);
}

.inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inline .input {
  flex: 1;
}

.actions {
  margin-top: 32px;
}

.button {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.primary {
  width: 100%;
  background: var(--primary-color);
  color: var(--primary-text);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.button.primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

.button.primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--input-border);
  white-space: nowrap;
}

.button.secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.hint {
  margin-top: 8px;
  margin-left: 2px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.banner {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid var(--input-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  text-align: center;
  animation: fadeIn 0.4s ease;
  backdrop-filter: blur(8px);
}

.banner.ok {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.05);
  color: #34d399;
}

.banner.bad {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.05);
  color: #f87171;
}

/* Custom styling for Select elements */
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
select.input option {
  background: #111111;
  color: #ffffff;
}
