/* Reset mặc định */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Container */
.container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Header */
.header {
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #eee;
}

.logo {
  max-height: 60px;
}

/* Main Section */
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #fff;
}

.form-container {
  max-width: 400px;
  width: 100%;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-container h2 {
  color: #5B22D4;
  font-size: 28px;
  margin-bottom: 10px;
}

.form-container h3 {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Role Selection */
.role-selection {
  margin-bottom: 20px;
}

.role-selection label {
  display: block;
  font-size: 16px;
  color: #5B22D4;
  font-weight: 600;
  margin-bottom: 10px;
}

.role-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.role-btn {
  padding: 10px 20px;
  font-size: 14px;
  border: 2px solid #5B22D4;
  background-color: #fff;
  color: #5B22D4;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-btn:hover {
  background-color: #5B22D4;
  color: #fff;
}

.role-btn.active {
  background-color: #5B22D4;
  color: #fff;
}

/* Form */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #5B22D4;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #5B22D4;
}

.btn-primary {
  background-color: #C5ED51;
  color: #333;
  border: none;
  padding: 12px 30px;
  width: 100%;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #b0d43f;
}

.switch-auth {
  margin-top: 20px;
  font-size: 14px;
  color: #5B22D4;
}

.switch-auth a {
  color: #5B22D4;
  text-decoration: none;
}

.switch-auth a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #0e1122;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 180px;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 10px;
}

.tagline {
  margin: 8px 0;
  font-size: 17px;
  color: #ccc;
}

.support {
  margin-top: 10px;
  margin-bottom: 10px;
  color: #ddd;
}

.support a {
  color: #C5ED51;
  text-decoration: none;
}

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

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a img {
  height: 28px;
  width: 28px;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  color: #ccc;
}

.footer-section ul li {
  margin: 6px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.payment-methods img {
  height: 30px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 13px;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 15px;
  }

  .logo {
    max-height: 50px;
  }

  .main {
    padding: 15px;
  }

  .form-container {
    padding: 20px;
  }

  .form-container h2 {
    font-size: 24px;
  }

  .form-container h3 {
    font-size: 14px;
  }

  .role-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 20px;
  }

  .social-icons,
  .payment-methods {
    justify-content: center;
  }
}