body {
  background: url("assets/background.svg") no-repeat center center fixed;
  background-size: cover;
}
/* Root Variables (matching the overall Babco design theme) */
:root {
  --primary-color: #e16349; /* Babco Orange */
  --text-color-primary: #343a40; /* Dark Gray for main text */
  --text-color-secondary: #495057; /* Medium Gray for less important text */
  --text-color-light: #6c757d; /* Light Gray for hints and labels */
  --background-light: #f8f9fa; /* Very Light Gray background */
  --border-color: #dee2e6; /* Light border color */
  --card-background: #ffffff;
  --input-background: #fdfdfd; /* Lighter input background */
  --shadow-light: rgba(0, 0, 0, 0.05);
}

/* Material Symbols Rounded font settings */
.material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Global Body Styles */
body {
  /* font-family: "Inter", sans-serif; */
  font-family: "Gabarito", sans-serif;
  margin: 0;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

img {
  width: 150px;
  height: auto;
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px; /* Padding around the card */
  box-sizing: border-box;
}

/* Login Card */
.login-card {
  background-color: var(--card-background);
  border-radius: 20px;
  box-shadow: 0 4px 10px var(--shadow-light); /* Slightly more prominent shadow for login card */
  padding: 40px;
  width: 100%;
  max-width: 480px; /* Fixed max width for the card */
  text-align: center;
  box-sizing: border-box;
}

.welcome-title {
  font-size: 28px;
  color: var(--text-color-primary);
  margin-bottom: 10px;
  font-weight: 700; /* Bold as in the image */
}

.company-name {
  color: var(--primary-color); /* Highlight Babco Foods with primary color */
}

.login-prompt {
  font-size: 15px;
  color: var(--text-color-secondary);
  margin-bottom: 30px;
}

.portal-text {
  color: var(
    --primary-color
  ); /* Highlight "supplier portal" with primary color */
  font-weight: 500;
}

/* Form Styling */
.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
  text-align: left; /* Align labels and inputs to the left */
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-color-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  color: var(--text-color-primary); /* Darker text for input values */
  background-color: var(--input-background);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-color-secondary); /* Placeholder text color */
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(225, 99, 73, 0.2);
}

/* Password Input with Toggle Icon */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 45px; /* Space for the icon */
}

.password-toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-light);
  cursor: pointer;
  font-size: 20px;
  transition: color 0.2s ease;
}

.password-toggle-icon:hover {
  color: var(--text-color-secondary);
}

/* Form Options (Stay signed in / Forgot Password) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-color-secondary);
}

.stay-signed-in {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggle Switch (reused from Label Generator) */
.switch {
  position: relative;
  display: inline-block;
  width: 36px; /* Slightly smaller for login page */
  height: 20px; /* Slightly smaller for login page */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color); /* Off color */
  transition: 0.4s;
  border-radius: 20px; /* Makes it round */
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px; /* Slightly smaller for login page */
  width: 14px; /* Slightly smaller for login page */
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color); /* On color */
}

input:checked + .slider:before {
  transform: translateX(16px); /* Adjust based on new width */
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s ease;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login Button */
.login-button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  margin-bottom: 30px;
}

.login-button:hover {
  background-color: #c75239; /* Slightly darker primary color */
}

/* OR Separator */
.or-separator {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--text-color-light);
}

.or-separator::before,
.or-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--border-color);
}

.or-separator::before {
  left: 0;
}

.or-separator::after {
  right: 0;
}

/* Social Login Buttons */
.social-login-buttons {
  display: flex;
  gap: 15px; /* Space between buttons */
}

.social-button {
  flex: 1; /* Distribute space evenly */
  background-color: var(--card-background); /* White background */
  color: var(--text-color-primary);
  border: 1px solid var(--border-color);
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-button:hover {
  background-color: var(--background-light);
  border-color: var(--text-color-secondary);
}

.social-button img {
  width: 20px;
  height: 20px;
}

.social-button .material-symbols-rounded {
  font-size: 20px;
  color: var(--text-color-secondary); /* Icon color for SSO */
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-card {
    padding: 25px;
  }
  .welcome-title {
    font-size: 24px;
  }
  .login-prompt {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
  }
  .social-login-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
