/* Reset basic styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #15182e;
  position: relative;
  overflow: hidden;
}
/* Background finisher canvas */
.background.finisher-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Make sure canvas goes behind */
}

.container {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(40, 60, 120, 0.15);
  width: 350px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease;

}
.container.hidden {
  opacity: 0;
  pointer-events: none;
}

.title p {
  font-size: 2rem;
  font-weight: 600;
  color: #2575fc;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-align: center;
}

/* Input group for each field */
.input-group {
  position: relative;
  margin-bottom: 2rem;
  width: 280px;
}

.input-group input {
  width: 100%;
  padding: 14px 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: transparent;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 14px;
  left: 12px;
  background: #ffffff;
  padding: 0 5px;
  color: #777;
  font-size: 16px;
  pointer-events: none;
  transition: 0.3s ease;
}

/* Floating label on focus or typed */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 13px;
  color: #2575fc;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance:none;
}

.btn {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(40, 60, 120, 0.10);
  transition: background 0.3s, transform 0.2s;
  margin-top: 0.5rem;
}

.btn:hover,
.btn:focus {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.login{
  margin-top: 20px;
  font-weight: bold;
  cursor: pointer;
}