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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #511713, #74211b, #8b2d23);
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

h2 {
  text-align: center;
  color: #511713;
  font-size: 24px;
  margin-bottom: 4px;
}

.subtitle {
  text-align: center;
  color: #777;
  font-size: 13px;
  margin-bottom: 18px;
}

.input-box {
  margin-bottom: 12px;
}

.input-box input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.input-box input:focus {
  outline: none;
  border-color: #511713;
  box-shadow: 0 0 0 3px rgba(81, 23, 19, 0.12);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 18px;
}

.row label {
  color: #555;
}

.row a {
  color: #511713;
  text-decoration: none;
  font-weight: 500;
}

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

.login-btn {
  width: 100%;
  padding: 11px;
  background: #511713;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn:hover {
  background: #6b1f1a;
  transform: translateY(-2px);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 16px;
  color: #999;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider span {
  padding: 0 12px;
}

.register-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px;
  border: 2px solid #ecc61a;
  border-radius: 8px;
  color: #511713;
  background: #ecc61a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s;
}

.register-btn:hover {
  color: #fff;
  cursor: pointer;
}

.footer {
  text-align: center;
  margin-top: 16px;
  color: #999;
  font-size: 12px;
}

.error-message {
    background: #ffe5e5;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    padding: 15px;
  }

  .login-box {
    max-width: 330px;
    padding: 22px;
  }

  .logo img {
    width: 65px;
    height: 65px;
  }

  h2 {
    font-size: 22px;
  }

  .subtitle {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body {
    overflow-y: auto;
    padding: 12px;
  }

  .login-box {
    max-width: 100%;
    padding: 20px;
  }

  .logo img {
    width: 60px;
    height: 60px;
  }

  h2 {
    font-size: 20px;
  }

  .input-box input,
  .login-btn,
  .register-btn {
    font-size: 14px;
  }
}
