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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e0e0e0;
  background: #0d1117;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1rem;
}

/* Brand */
.brand {
  text-align: center;
  margin-bottom: 2rem;
}

.brand h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #58a6ff;
  letter-spacing: 2px;
}

.brand .subtitle {
  color: #8b949e;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Dial (3D flip) */
.dial-wrapper {
  perspective: 1000px;
}

.dial {
  position: relative;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
}

.dial.flipped {
  transform: rotateY(180deg);
}

.dial-face {
  width: 100%;
  backface-visibility: hidden;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 2rem;
}

.dial-front {
  position: relative;
}

.dial-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Error messages */
.error-msg {
  display: none;
  background: #3d1114;
  border: 1px solid #6e2d30;
  color: #f85149;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Form elements */
h2 {
  font-size: 1.4rem;
  color: #f0f6fc;
  margin-bottom: 1.5rem;
  text-align: center;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: #8b949e;
  margin-bottom: 0.3rem;
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus {
  border-color: #58a6ff;
}

.field input::placeholder {
  color: #484f58;
}

button[type="submit"] {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  background: #238636;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #2ea043;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.switch-text {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #8b949e;
}

.switch-text a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 600;
}

.switch-text a:hover {
  text-decoration: underline;
}
