@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600;700&display=swap");

body {
  font-family: "Barlow Semi Condensed", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f6fc;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Header */
h1, h2 {
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}

/* Form Container */
form {
  max-width: 460px;
  width: 100%;
  margin: 2rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Logo */
.login_logo {
  display: block;
  margin: 1rem auto;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out;
}
.login_logo:hover {
  transform: scale(1.03);
}

/* Inputs */
label {
  display: block;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 0.3rem;
}
input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccd6dd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}
input:focus {
  border-color: #3498db;
  outline: none;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
.form-check input {
  width: auto;
  margin-right: 0.5rem;
}
.form-check-label_m {
  font-size: 0.95rem;
}

/* Submit button */
button, input[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
}

/* Error / Info messages */
.alert {
  padding: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.text-danger {
  font-size: 0.9rem;
  color: red;
}
#msg {
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

/* Paragraph under form */
form p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  text-align: center;
}
form p a {
  color: #2980b9;
  font-weight: bold;
  text-decoration: none;
}
form p a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  form {
    margin: 1rem;
    padding: 1.5rem;
  }
  .login_logo {
    max-width: 220px;
  }
  h1, h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  form {
    margin: 0rem;
    padding: 1rem;
  }
  .login_logo {
    max-width: 280px;
  }
}
