* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../icons/background-image.jpeg');
    background-size: cover;
    background-position: center;
}

.glass-container {
    width: 300px;
    min-height: 350px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;

    /* layout so children stack vertically and can stretch */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
}

.glass-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.login-box {
    width: 100%;
    max-width: 250px;
    text-align: center;
}

h2 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: -20px;
}

form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

input {
    padding: 10px;
    margin-top: 25px;
    border: none;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
}

input::placeholder {
    color: #fff;
}

input:focus {
    outline: none;
}

.options {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    color: white;
}

.options a {
    text-decoration: none;
    color: white;
    margin-left: auto;
}

button[type="submit"] {
    background: #fff;
    color: black;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
}

button[type="submit"]:hover {
    background: transparent;
    color: white;
    outline: 1px solid #fff;
}

p {
    font-size: 12px;
    color: #fff;
    margin-top: 15px;
}

#register {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* Error box */
.error-box {
  display: block;
  margin-top: 12px;
  padding: 10px 12px 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95em;
  text-align: left;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* red accent bar on the left */
.error-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background: linear-gradient(180deg,#ff6b6b,#ff4d4f);
}
/* smaller tweak */
@media (max-width: 360px) {
  .glass-container { width: calc(100% - 24px); }
  .error-box {
    font-size: 0.9em;
    padding: 7px 10px 7px 16px;
  }
}