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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #313338;
  color: #dbdee1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-app-region: drag;
  user-select: none;
}

.container {
  -webkit-app-region: no-drag;
  background-color: #2b2d31;
  border-radius: 8px;
  padding: 40px;
  width: 440px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #b5bac1;
  margin-bottom: 28px;
  line-height: 1.4;
}

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

.input-group label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #b5bac1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  background-color: #1e1f22;
  border: none;
  border-radius: 4px;
  color: #dbdee1;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.15s ease;
}

.input-group input:focus {
  box-shadow: 0 0 0 2px #5865f2;
}

.input-group input::placeholder {
  color: #6d6f78;
}

.connect-btn {
  width: 100%;
  padding: 12px;
  background-color: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.connect-btn:hover {
  background-color: #4752c4;
}

.connect-btn:active {
  background-color: #3c45a5;
}

.connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  margin-top: 16px;
  padding: 10px 14px;
  background-color: rgba(237, 66, 69, 0.1);
  border: 1px solid rgba(237, 66, 69, 0.3);
  border-radius: 4px;
  color: #ed4245;
  font-size: 14px;
  display: none;
  text-align: left;
}

.error.visible {
  display: block;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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