/* login.css */

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff3f3;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container {
  display: flex;
  max-width: 900px;
  width: 100%;
  background: white;
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  min-height: 550px;
  max-height: 90vh;
}

.logo-section {
  flex: 1;
  background: #f44336;
  color: white;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.logo-section img {
  width: 100px;
  border-radius: 12px;
  margin: 0 auto;
}

.logo-section h1 {
  margin: 0;
  font-size: 2.8rem;
}

.logo-section p {
  font-weight: 300;
  font-size: 1.2rem;
  color: #ffe8e6;
}

.form-section {
  flex: 1;
  padding: 40px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.form-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  gap: 20px;
}

.form-toggle button {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 6px;
  cursor: pointer;
  color: #999;
  border-bottom: 3px solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.form-toggle button.active {
  color: #f44336;
  border-bottom-color: #f44336;
}

.form-container form {
  display: none;
  flex-direction: column;
}

.form-container form.active {
  display: flex;
}

.back-home {
  margin-bottom: 15px;
  text-align: left;
}

.back-home a {
  color: #f44336;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-home a:hover {
  color: #d32f2f;
  text-decoration: underline;
}


form h2 {
  margin-bottom: 25px;
  color: #222;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
}

.input-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 6px;
  font-weight: 600;
}

.input-group input {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.btn-submit {
  background: #f44336;
  color: white;
  border: none;
  padding: 14px 0;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #d73833;
}

/* Responsive */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    min-height: auto;
    border-radius: 0;
  }

  .logo-section {
    padding: 30px 20px;
  }

  .form-section {
    padding: 30px 20px;
  }
}
