/* Keep your background effect */
.background {
  width: 430px;
  height: 520px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.background .shape {
  height: 200px;
  width: 200px;
  position: absolute;
  border-radius: 50%;
}

.shape:first-child {
  background: linear-gradient(#274a7353, #274a73);
  left: -80px;
  top: -80px;
}

.shape:last-child {
  background: linear-gradient(to right, #69696928, #696969);
  right: -30px;
  bottom: -80px;
}

/* IMPORTANT CHANGE:
   Logo is now inside the form header, not absolutely centered on the page */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 14px;
  opacity: 0.95;
}

/* Your form styling, kept */
form {
  height: 520px;
  width: 400px;
  background-color: rgba(0, 0, 0, 0.03);
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  z-index: 2;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  padding: 50px 35px;
}

form * {
  font-family: inherit;
  letter-spacing: inherit;
  outline: none;
  border: none;
}

form h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 42px;
  text-align: center;
}

.trademark {
  font-size: 18px;
  vertical-align: super;
  margin-left: 2px;
  font-weight: normal;
}

/* Labels / inputs */
label {
  display: block;
  margin-top: 22px;
  font-size: 16px;
  font-weight: 500;
}

input {
  display: block;
  height: 50px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 0 14px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 300;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

input:focus {
  border-color: rgba(39, 74, 115, 0.35);
  box-shadow: 0 0 0 3px rgba(39, 74, 115, 0.12);
}

::placeholder {
  color: #999999;
}

/* Button: keep your color, add padding/radius for nicer look */
button {
  margin-top: 28px;
  width: 100%;
  background-color: #274a73d3;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 14px;
}

button:hover {
  background-color: #274a73;
}

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

/* Error box for failed login */
.err {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(176, 0, 32, 0.25);
  background: rgba(176, 0, 32, 0.07);
  color: #b00020;
  font-size: 0.95em;
}

/* Social buttons: keep your layout, but make them buttons-friendly */
.social {
  margin-top: 22px;
  display: flex;
  gap: 12px;
}

.social button {
  margin-top: 0;
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
  background-color: rgba(0, 0, 0, 0.00);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #222;
  font-size: 14px;
  font-weight: 500;
}

.social button:hover {
  background-color: rgba(0, 0, 0, 0.10);
}

.social button:disabled {
  opacity: 0.6;
}

.social i {
  margin-right: 6px;
}
