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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
}

/* Container for centering content */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  background-color: #d72630; /* Red */
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo img {
  height: 50px; /* Adjust logo size */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Employee Info Styles */
.employee-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #ffffff; /* White */
  font-size: 14px;
}

.employee-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.employee-number {
  font-size: 12px;
  opacity: 0.8;
}

/* Back Button */
.back-button {
  background-color: #ffffff; /* White */
  color: #ff0000; /* Red */
  border: 2px solid #ff0000;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.back-button:disabled {
  background-color: #cccccc; /* Gray */
  color: #666666;
  border-color: #cccccc;
  cursor: not-allowed;
}

.back-button:not(:disabled):hover {
  background-color: #ff0000; /* Red */
  color: #ffffff; /* White */
}

/* Main Content */
main {
  padding: 40px 0;
  text-align: center;
}

main h1 {
  color: #ff0000; /* Red */
  margin-bottom: 20px;
}

main p {
  font-size: 18px;
  color: #333;
}

/* Footer Styles */
footer {
  background-color: #ff0000; /* Red */
  color: #ffffff; /* White */
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0;
}

/* Login Form Styles */
#login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  border-color: #ff0000; /* Red */
  outline: none;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* Login Button */
.login-button {
  width: 100%;
  background-color: #ff0000; /* Red */
  color: #ffffff; /* White */
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
  background-color: #cc0000; /* Darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Error Message Styles */
.error-message {
  color: #ff0000; /* Red */
  font-size: 14px;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #ffe6e6; /* Light red background */
  border: 1px solid #ff0000;
  border-radius: 5px;
  display: none; /* Hidden by default */
}

.error-message.active {
  display: block; /* Show when active */
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .employee-info {
    align-items: center;
    margin: 10px 0;
  }

  .back-button {
    margin-top: 10px;
  }

  main h1 {
    font-size: 24px;
  }

  main p {
    font-size: 16px;
  }

  #login-form {
    padding: 15px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input {
    font-size: 14px;
    padding: 8px;
  }

  .login-button {
    font-size: 16px;
    padding: 12px;
  }
}



/* Customer Portal Button */
.customer-portal {
  text-align: right;
}

.customer-button {
  background-color: #ffffff; /* White */
  color: #ff0000; /* Red */
  border: 2px solid #ff0000;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  text-decoration: none;
  display: inline-block;
}

.customer-button:hover {
  background-color: #ff0000;
  color: #ffffff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .customer-portal {
    text-align: center;
    margin-top: 10px;
  }
}
