/**
 * Custom Login Page Styles
 */

.login-page {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f7f5;
  min-height: 100vh;
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Side - Hero Image */
.login-left {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .login-left {
    display: flex;
    width: 50%;
  }
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(34, 25, 16, 0.7), rgba(34, 25, 16, 0.5), rgba(34, 25, 16, 0.8));
}

.login-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.login-logo-top {
  color: white;
}

.login-site-logo {
  height: 4rem;
  width: auto;
  max-width: 250px;
  object-fit: contain;
}

.login-logo {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

.login-logo svg {
  width: 100%;
  height: 100%;
}

.login-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-branding {
  color: white;
  margin-bottom: 0.5rem;
}

.login-brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.login-hero-title {
  max-width: 28rem;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.login-hero-desc {
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Right Side - Form */
.login-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
  background: white;
}

@media (min-width: 1024px) {
  .login-right {
    width: 50%;
    padding: 6rem;
  }
}

.login-form-wrapper {
  width: 100%;
  max-width: 440px;
}

/* Mobile Logo */
.login-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  color: #f27f0d;
}

@media (min-width: 1024px) {
  .login-mobile-logo {
    display: none;
  }
}

.login-mobile-brand {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: #181411;
}

/* Heading */
.login-heading {
  margin-bottom: 2.5rem;
}

.login-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #181411;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 1rem;
  color: #8a7560;
}

/* Messages */
#login-messages {
  margin-bottom: 1.25rem;
}

.login-message {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.login-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.login-message.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #181411;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f27f0d;
  text-decoration: none;
  transition: opacity 0.2s;
}

.forgot-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a7560;
  font-size: 1.125rem;
  z-index: 1;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8a7560;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 1;
}

.password-toggle:hover {
  color: #f27f0d;
}

.password-toggle:focus {
  outline: none;
  color: #f27f0d;
}

.form-input {
  width: 100%;
  height: 3.5rem;
  padding: 0 3rem;
  font-size: 1rem;
  color: #181411;
  background: white;
  border: 1px solid #e6e0db;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #f27f0d;
  box-shadow: 0 0 0 3px rgba(242, 127, 13, 0.1);
}

.form-input::placeholder {
  color: #8a7560;
}

/* Remember Me */
.remember-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.remember-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #e6e0db;
  color: #f27f0d;
  cursor: pointer;
}

.remember-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 127, 13, 0.1);
}

.remember-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a7560;
  cursor: pointer;
}

/* Submit Button */
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.5rem;
  margin-top: 1rem;
  padding: 0 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: #f27f0d;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.login-button:hover {
  background: #d96f0b;
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-text {
  display: inline-block;
}

.button-loader {
  display: none;
}

.login-button.loading .button-text {
  display: none;
}

.login-button.loading .button-loader {
  display: inline-block;
}

/* Footer Links */
.login-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e6e0db;
}

.login-footer a {
  font-size: 0.875rem;
  color: #8a7560;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #f27f0d;
}

/* Responsive */
@media (max-width: 640px) {
  .login-right {
    padding: 1.5rem;
  }

  .login-hero-title {
    font-size: 2.25rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}