
/* ================================
   Reset and Base Styles
================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================
   Header and Logo
================================== */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
}
.logo img {
  width: 60px;
}
.logo h3 {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  color: #222;
}

/* ================================
   Image Slider (Landing Page)
================================== */
.slider {
  overflow: hidden;
  width: 100%;
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slides img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

/* ================================
   Buttons on Landing Page
================================== */
.loginlink {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
}
.loginlink > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loginlink img {
  width: 80px;
  height: auto;
}
.loginlink button {
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
.loginlink button:hover {
  background-color: #0056b3;
}

/* ================================
   Form Container (Login/Register)
================================== */
.container {
  max-width: 420px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #007bff;
}

/* ================================
   Input Fields
================================== */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.input-group input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.input-group i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* ================================
   Buttons (Submit / Register / Login)
================================== */
button[type="submit"],
#loginButton,
#registerButton {
  width: 100%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
button[type="submit"]:hover,
#loginButton:hover,
#registerButton:hover {
  background-color: #0056b3;
}

/* ================================
   Social Icons (Optional)
================================== */
.icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
  margin-top: 1rem;
}
.icons i {
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
}
.icons i:hover {
  color: #007bff;
}

/* ================================
   Divider and Navigation Links
================================== */
.or {
  text-align: center;
  margin: 1.5rem 0;
  color: #888;
}
.links {
  text-align: center;
}
.links p {
  margin-bottom: 0.5rem;
}
.links button,
.links a button {
  width: auto;
  padding: 0.5rem 1.5rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.links button:hover,
.links a button:hover {
  background-color: #218838;
}

/* ================================
   Message Box for Feedback
================================== */
#message,
#loginMessage {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: red;
}

/* ================================
   Footer
================================== */
footer {
  margin-top: auto;
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: white;
  font-size: 0.9rem;
}

/* ================================
   Mobile Responsive Styles
================================== */
@media (max-width: 768px) {
  .loginlink img {
    width: 60px;
  }

  .loginlink button {
    width: 100%;
    font-size: 0.9rem;
  }

  .logo img {
    width: 50px;
  }

  .logo h3 {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }
  .form-title {
    font-size: 1.2rem;
  }
  button[type="submit"],
  #loginButton,
  #registerButton {
    font-size: 0.95rem;
  }
}
