/* ==================================
   BETTER BITE ORLANDO
   LOGIN PAGE
================================== */

:root {
  --login-green: #3d622c;
  --login-orange: var(--bbo-orange-text);
}

/* General Page */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: "Inter", sans-serif;
  background-color: #ffffff;
}

/* Main Login Section */
.login-page {
  min-height: calc(100vh - 85px);
  padding: 35px 5%;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 45px;

  background-image:
    linear-gradient(rgba(235, 245, 255, 0.65), rgba(235, 245, 255, 0.65)), url("../images/homepage-img.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==================================
   LEFT SECTION
================================== */

.login-intro {
  max-width: 470px;
}

.login-intro h1 {
  font-size: 38px;
  font-weight: 700;
  color: #1d1d1d;
  margin-bottom: 12px;
}

.login-intro > p {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
}

/* Benefits Container */
.login-benefits {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

/* Individual Benefit */
.benefit {
  display: flex;
  align-items: center;
  gap: 15px;

  font-size: 13px;
  color: #242424;
}

/* Benefit Icons */
.benefit-icon {
  width: 55px;
  height: 55px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 25px;
}

.benefit-icon.green {
  background-color: #80c98f;
  color: #3d622c;
}

.benefit-icon.orange {
  background-color: #ffb66f;
  color: #f97316;
}

.benefit-icon.purple {
  background-color: #e0b5ff;
  color: #9333ea;
}

/* ==================================
   RIGHT SECTION - LOGIN CARD
================================== */

.login-card {
  width: 100%;
  max-width: 510px;
  min-width: 0;

  margin: 0 auto;
  padding: 38px 45px;

  background-color: #ffffff;
  border-radius: 22px;

  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.login-card h2 {
  font-size: 32px;
  font-weight: 700;
  color: #23452b;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 13px;
  color: #555555;
  margin-bottom: 30px;
}

/* ==================================
   LOGIN FORM
================================== */

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  padding-left: 45px;

  font-size: 13px;
  font-weight: 500;
  color: #333333;
}

/* Input Layout */
.input-container {
  display: flex;
  align-items: center;
  gap: 18px;
}

.input-container i {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  font-size: 25px;
  color: #111111;
}

/* Input Fields */
.input-container input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 12px 16px;

  background-color: #eeeeee;
  border: 1px solid transparent;
  border-radius: 14px;

  font-family: var(--bbo-font);
  font-size: 12px;
  color: #222222;
}

.input-container input:focus {
  outline: 2px solid var(--login-green);
  outline-offset: 1px;
  background-color: #ffffff;
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 35px;
}

.forgot-password a {
  font-size: 11px;
  color: var(--login-orange);
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Sign In Button */
.login-btn {
  display: block;
  width: calc(100% - 46px);
  min-height: 45px;
  margin-left: 46px;

  background-color: var(--login-green);
  color: #ffffff;
  border: none;
  border-radius: 14px;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-btn:hover {
  background-color: #559439;
}

.login-btn:focus-visible {
  outline: 3px solid #ff8a30;
  outline-offset: 3px;
}

/* Login Status Message */
#login-status {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
}

#login-status:empty {
  display: none;
}

/* Registration Link */
.register-link {
  margin-top: 35px;
  text-align: center;

  font-size: 12px;
  color: #222222;
}

.register-link a {
  margin-left: 8px;
  color: var(--bbo-orange-text, #c45100);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Back Home */
.back-home {
  display: block;
  margin-top: 28px;

  text-align: center;
  text-decoration: none;

  font-size: 11px;
  color: var(--login-green);
}

.back-home:hover {
  text-decoration: underline;
}

/* ==================================
   Login Page - Layout Improvements
   Match Registration Page Design
   ================================== */

/* Center the login information and form */
.login-page:not(.register-page):where(:not(.auth-split-page)) {
  grid-template-columns:
    minmax(0, 480px)
    minmax(0, 570px);

  justify-content: center;
  align-items: center;

  gap: clamp(28px, 4vw, 72px);
}

/* Left information panel */
.login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro {
  width: 100%;
  max-width: 480px;

  padding: 30px;

  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;

  box-shadow: 0 8px 28px rgba(30, 55, 40, 0.08);
}

/* ==================================
   Login Page - Align Panels at Top
   ================================== */

.login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro {
  align-self: start;
  padding-top: 38px;
}

/* ==================================
   Login Typography
   Match Registration Page
   ================================== */

/* Left heading: Welcome back! */
.login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: #23452b;
}

/* Right heading: Sign In */
.login-page:not(.register-page):where(:not(.auth-split-page)) .login-card h2 {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #23452b;
}

/* Left description */
.login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro > p {
  color: #33443a;
  font-size: 15px;
  line-height: 1.7;
}

/* Benefit descriptions */
.login-page:not(.register-page):where(:not(.auth-split-page)) .benefit {
  color: #263b2b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* ==================================
   Responsive Login Layout
   ================================== */

@media (max-width: 900px) {
  .login-page:not(.register-page):where(:not(.auth-split-page)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;

    text-align: left;
  }
}

@media (max-width: 480px) {
  .login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro {
    padding: 20px;
  }

  .login-page:not(.register-page):where(:not(.auth-split-page)) .login-intro h1 {
    font-size: 28px;
  }

  .login-page:not(.register-page):where(:not(.auth-split-page)) .benefit {
    font-size: 13px;
  }
}
/* ==================================
   RESPONSIVE LAYOUT
================================== */

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 35px 20px;
  }

  .login-intro {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }

  .login-benefits {
    align-items: flex-start;
    text-align: left;
  }

  .login-card {
    max-width: 550px;
  }
}

@media (max-width: 480px) {
  .login-intro h1 {
    font-size: 28px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .login-card h2 {
    font-size: 27px;
  }

  .input-container {
    gap: 10px;
  }

  .form-group label {
    padding-left: 38px;
  }

  .login-btn {
    width: calc(100% - 38px);
    margin-left: 38px;
  }
}
