@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #e9ecef;
  --hover-color: #0056b3;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Main Content Styles */
main {
  flex: 1;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Auth Container Styles */
.auth-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 0 20px;
}

.auth-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-header i {
  font-size: 1.8rem;
}

.auth-header h2 {
  font-size: 1.8rem;
  font-weight: 500;
}

.auth-content {
  padding: 2rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-color);
}

.auth-tab {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab:hover {
  color: var(--primary-color);
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.5s ease-out forwards;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.form-group label i {
  margin-right: 8px;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.25);
}

.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: var(--primary-color);
}

.remember-me {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 1px solid #ced4da;
  border-radius: 3px;
  background-color: white;
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 12px;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn i {
  margin-right: 8px;
}

.login-message,
.register-message {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}

/* Info Styles */
.auth-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.info-card-header {
  background-color: var(--info-color);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-header i {
  font-size: 1.2rem;
}

.info-card-header h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.info-card-content {
  padding: 1.5rem;
}

.info-card-content p {
  margin-bottom: 1rem;
}

.info-card-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.info-card-content li {
  margin-bottom: 0.5rem;
}

.info-note {
  background-color: #e3f2fd;
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-note i {
  font-size: 1.5rem;
  color: var(--info-color);
}

.info-note h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.info-note p {
  font-size: 0.95rem;
  color: #495057;
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

/* Dark Theme */
body.dark-theme {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-theme .auth-card,
body.dark-theme .info-card {
  background-color: #1e1e1e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-theme .form-control {
  background-color: #2a2a2a;
  border-color: #3a3a3a;
  color: #e0e0e0;
}

body.dark-theme .auth-tab {
  color: #b0b0b0;
}

body.dark-theme .auth-tab.active {
  color: var(--primary-color);
}

body.dark-theme .info-note {
  background-color: #1a3a5a;
}

body.dark-theme .info-note p {
  color: #c0c0c0;
}

body.dark-theme .checkbox-custom {
  background-color: #2a2a2a;
  border-color: #3a3a3a;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .auth-content {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .auth-header {
    padding: 1rem;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .auth-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .auth-tab {
    text-align: center;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .auth-tab.active {
    border-bottom-color: transparent;
    border-left-color: var(--primary-color);
    background-color: rgba(58, 134, 255, 0.1);
  }

  .remember-me {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}