:root {
  --primary-color: #ffffff;
  --secondary-color: #00EFAF;
  --background-color: #E5FFF8;
  --text-color: #333333;
  --text-color-secondary: #6f6f6f;
  --error-color: #e74c3c;
  --success-color: #27ae60;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  min-height: 100vh;
  padding-top: 80px;
}

.page-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  background: var(--primary-color);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 20px;
}

.login-left {
  flex: 1;
  background: var(--secondary-color);
  position: relative;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  min-height: 400px;
}

.brand {
  position: relative;
  z-index: 1;
}

.brand h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
}

.brand p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
  text-align: center;
}

.login-right {
  flex: 1;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 100%;
}

/* Custom scrollbar for login-right */
.login-right::-webkit-scrollbar {
  width: 8px;
}

.login-right::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.login-right::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 10px;
}

.login-right::-webkit-scrollbar-thumb:hover {
  background: #00d99f;
}

.login-header {
  margin-bottom: 30px;
  padding-top: 10px;
}

.login-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.login-header p {
  font-size: 14px;
  color: var(--text-color-secondary);
}

.error-message {
  background-color: #fadbd8;
  color: var(--error-color);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-left: 4px solid var(--error-color);
}

.success-message {
  background-color: #d4edda;
  color: var(--success-color);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-left: 4px solid var(--success-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-color-secondary);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 239, 175, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--secondary-color);
}

.remember-me label {
  font-size: 14px;
  color: #5a6c7d;
  cursor: pointer;
  margin: 0;
}

.forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #00d99f;
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  margin-bottom: 20px;
}

.btn-login:hover {
  background-color: #00d99f;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 239, 175, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  color: #7f8c8d;
  font-size: 14px;
}

.social-login {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-social {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
}

.btn-social:hover {
  border-color: var(--secondary-color);
  background: #f8f9fa;
  transform: translateY(-2px);
}

.btn-social:active {
  transform: translateY(0);
}

.signup-link {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
  padding-bottom: 20px;
}

.signup-link a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: #00d99f;
  text-decoration: underline;
}

@media (max-width: 968px) {
  body {
    padding-top: 70px;
  }

  .page-wrapper {
    min-height: calc(100vh - 70px);
    padding: 30px 10px;
  }

  .login-container {
    flex-direction: column;
    max-width: 600px;
  }

  .login-left {
    padding: 40px 30px;
    min-height: 200px;
  }

  .brand h1 {
    font-size: 36px;
  }

  .brand p {
    font-size: 16px;
  }

  .login-right {
    padding: 40px 30px;
    max-height: 70vh;
  }

  .login-header h2 {
    font-size: 28px;
  }

  .form-group {
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  .page-wrapper {
    min-height: calc(100vh - 70px);
    padding: 20px 15px;
  }

  .login-container {
    border-radius: 20px;
    min-height: auto;
    flex-direction: column;
  }

  .login-left {
    padding: 30px 20px;
    min-height: 180px;
  }

  .login-right {
    padding: 30px 20px;
    max-height: none;
  }

  .brand h1 {
    font-size: 28px;
  }

  .brand p {
    font-size: 14px;
  }

  .login-header h2 {
    font-size: 24px;
  }

  .social-login {
    flex-direction: column;
  }

  .btn-social {
    width: 100%;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
    .brand h1 {
        font-size: 24px;
    }

    .brand p {
        font-size: 13px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

    .btn-social {
        padding: 10px;
        font-size: 13px;
    }
}