@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&display=swap");


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Mono", monospace;
}

/* Page background */
body {
  height: 100vh;
  background: radial-gradient(circle at top, #1e293b, #020617);
  font-family: "Segoe UI", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin: 0;
  padding: 0;
}

/* Wrapper */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 10px;
}

/* Title */
.title {
  color: #2f6bff;
  font-size: 36px;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

/* Card */
.card,
.form-box {
  background: #0f172a; /* unified card background */
  width: 100%;
  max-width: 500px;
  padding: 35px 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

/* Input group */
.input-group {
  margin-bottom: 25px;
}

/* Labels */
label {
  display: block;
  margin-bottom: 6px;
  margin-top: 12px;
  color: #94a3b8;
  font-size: 14px;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  background: #020617;
  border: 1px solid #334155;
  outline: none;
  color: #f8fafc;
  font-size: 16px;
  transition: 0.3s;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Placeholder */
input::placeholder {
  color: #7a8aa5;
}

/* Remember box */
.remember {
  display: flex;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
  color: #cbd5e1;
}

.remember input {
  margin-right: 8px;
  accent-color: #2563eb;
}

/* Button */
button {
  width: 100%;
  padding: 14px;
  margin-top: 25px;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

button:hover:not(:disabled) {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

/* Disabled button */
button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Spinner styles */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* Bottom text */
.switch-text {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #94a3b8;
}

.switch-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: bold;
}

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