:root {
  --primary: #4070FF;
  --primary-dark: #3060FF;
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --error: #dc2626;
  --success: #16a34a;
  --border: #E5E7EB;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 38rem;
  text-align: center;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(64, 112, 255, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.content {
  background: var(--bg);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
}

input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 1rem;
  background: var(--bg);
  transition: all 0.2s;
  font-size: 1rem;
  color: var(--text);
}

input:hover {
  border-color: var(--primary);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(64, 112, 255, 0.1);
}

.error input {
  border-color: var(--error);
}

.error input:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.error .error-message {
  display: flex;
}

.error-message span {
  text-align: left;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(64, 112, 255, 0.2);
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(64, 112, 255, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.9;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.recent-workspaces {
  display: none;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.recent-workspaces.visible {
  display: block;
}

.recent-workspaces h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: left;
}

.workspace-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workspace-item {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(64, 112, 255, 0.05);
  border: 1px solid rgba(64, 112, 255, 0.1);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  gap: 0.75rem;
}

.workspace-item:hover {
  background: rgba(64, 112, 255, 0.1);
  transform: translateY(-1px);
}

.workspace-item:active {
  transform: translateY(0);
}

.workspace-item span:first-child {
  color: var(--primary);
}

.workspace-item span:last-child {
  color: var(--text);
  font-weight: 500;
}

footer {
  margin-top: 2rem;
  text-align: center;
}

.powered-by {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.powered-by a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.powered-by a:hover {
  text-decoration: underline;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading .button-content {
  display: none;
}

.loading::after {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  display: block;
  margin: 0 auto;
}

.success .button-content {
  display: none;
}

.success::after {
  content: '✓';
  display: block;
  text-align: center;
  font-size: 1.25rem;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 12px;
  }
  .container {
    max-width: 100%;
  }

}