:root {
  --bg-color: #242d34;
  --modal-bg: #000000;
  --text-primary: #e7e9ea;
  --text-secondary: #71767b;
  --border-color: #2f3336;
  --primary-color: #eff3f4;
  --primary-hover: #d7dbdc;
  --input-bg: #000000;
  --input-focus: #1d9bf0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(91, 112, 131, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: var(--modal-bg);
  width: 100%;
  max-width: 600px;
  height: 100%;
  max-height: 650px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

@media (max-width: 700px) {
  .modal {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 53px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
  text-decoration: none;
}

.close-btn:hover {
  background-color: rgba(239, 243, 244, 0.1);
}

.close-btn svg {
  width: 20px;
  fill: var(--text-primary);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.logo svg {
  width: 32px;
}

.spacer {
  width: 34px;
}

.modal-content {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
}

h1 {
  font-size: 31px;
  font-weight: 700;
  margin: 32px 0 16px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 20px;
  margin-bottom: 32px;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--input-bg);
}

.input-group:focus-within {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 1px var(--input-focus);
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 26px 8px 8px;
  font-size: 17px;
  outline: none;
}

.input-group label {
  position: absolute;
  left: 8px;
  top: 16px;
  color: var(--text-secondary);
  font-size: 17px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
  top: 6px;
  font-size: 13px;
  color: var(--input-focus);
}

.input-group input:not(:focus)+label {
  color: var(--text-secondary);
}

.flex-spacer {
  flex: 1;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #0f1419;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-large {
  height: 52px;
  font-size: 17px;
  border-radius: 26px;
  margin-bottom: 24px;
}

.w-100 {
  width: 100%;
}