/* auth.css */

/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  color: #333;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

header img {
  max-width: 60px;
}

header h1 {
  font-size: 1.2em;
  font-style: italic;
  font-weight: 400;
  color: #333;
  margin-left: 15px;
}

nav button {
  background: none;
  border: none;
  font-size: 1em;
  color: #555;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.3s ease;
}

nav button:hover {
  color: #000;
}

/* Main */
main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  background-image: url('../../images/login-registration-banner.png');
  background-size: cover;
  background-position: center;
}

/* Auth Form */
.auth-form {
  width: 100%;
  max-width: 400px;
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form h2 {
  margin-bottom: 1em;
  color: #333;
}

.auth-form label {
  display: block;
  text-align: left;
  font-size: 0.9em;
  margin-top: 1em;
  color: #555;
}

.auth-form input {
  width: 100%;
  padding: 0.8em;
  margin-top: 0.5em;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 1em;
  outline: none;
  transition: border 0.3s ease;
}

.auth-form input:focus {
  border-color: #1a73e8;
}

.auth-form .remember-me {
  display: flex;
  align-items: center;
  margin-top: 1em;
}

.auth-form .remember-me input {
  width: auto;
  margin-right: 0.5em;
}

.auth-form button {
  width: 100%;
  padding: 0.8em;
  margin-top: 1.5em;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.auth-form button:hover {
  background: #1256c4;
  transform: translateY(-2px);
}

.auth-form p {
  margin-top: 1em;
  color: #555;
}

.auth-form p a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-form p a:hover {
  color: #1256c4;
}

.error-message {
  color: #d8000c;
  background-color: #ffbaba;
  padding: 0.5em;
  margin-bottom: 1em;
  border-radius: 5px;
  display: none;
  font-size: 0.9em;
}

.success-message {
  color: #155724;
  background-color: #d4edda;
  padding: 0.5em;
  margin-bottom: 1em;
  border-radius: 5px;
  display: none;
  font-size: 0.9em;
} 

/* Footer */
footer {
  text-align: center;
  background: #f1f3f4;
  color: #555;
  padding: 1em 0;
}

/* Responsive */
@media (max-width: 480px) {
  header,
  main,
  footer {
    padding: 1em;
  }

  nav button {
    margin-left: 10px;
  }

  .auth-form {
    margin: 0 1em;
    padding: 1.5em;
  }
}