@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&family=Lato:wght@300;400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

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

html, body {
  height: 100%;
  min-height: 100vh;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0a0707;
  line-height: 1.6;
  overflow-x: hidden;
}

.full-screen-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/Carousel-3-scaled.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.login-page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 32px 40px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1000px;
  width: 90%;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
  color: #0a0707;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6a4d8a 0%, #f1d204 50%, #6a4d8a 100%);
}

.card-section {
  display: flex;
  flex-direction: column;
}

.login-section {
  flex: 62%;
  justify-content: flex-start;
  min-width: 300px;
}

.benefits-section {
  flex: 38%;
  justify-content: flex-start;
  background: #f8f9fa;
  border-left: 1px solid #e9ecef;
  padding: 32px 28px;
  border-radius: 0 12px 12px 0;
}

.section-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.login-section .section-header h2 {
  font-family: 'Poppins', 'Source Sans Pro', 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #0a0707;
}

.login-section .section-header p {
  color: #333;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
  line-height: 1.6;
}

.benefits-section .section-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.benefits-section .section-header h3 {
  font-family: 'Poppins', 'Source Sans Pro', 'Lato', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #0a0707;
  letter-spacing: normal;
  text-transform: none;
}

.benefits-section .section-header p {
  color: #555;
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
}

  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
  }

  .form-group {
    margin-bottom: 0;
    flex-shrink: 0;
  }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #333;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
}

.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  background: #fff;
  color: #0a0707;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #6a4d8a;
  box-shadow: 0 0 0 3px rgba(106, 77, 138, 0.1);
}

.form-group input::placeholder {
  color: #999;
  opacity: 0.8;
  font-style: normal;
}

.remember-text {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: #333;
  font-size: 0.85rem;
  font-weight: 400;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
}

.remember-text input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #6a4d8a;
}

  .form-actions {
    margin-top: auto;
    padding-top: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;
    margin-bottom: 6px;
  }

  .form-actions input[type="submit"] {
    padding: 18px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  .form-actions input[type="submit"] {
    padding: 18px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 6px;
  }

  .form-actions input[type="submit"] {
    padding: 18px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 6px;
  }

.form-actions input[type="submit"] {
  width: 100%;
  background-color: #f1d204;
  color: #0a0707;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Poppins', 'Source Sans Pro', 'Lato', sans-serif;
  position: relative;
}

.form-actions input[type="submit"]:hover {
  background-color: #6a4d8a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 77, 138, 0.25);
}

.form-actions input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(106, 77, 138, 0.15);
}

.form-footer-links {
  margin-top: 16px;
  padding-top: 16px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-footer-links a {
  color: #6a4d8a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
}

.form-footer-links a:hover {
  color: #f1d204;
  text-decoration: underline;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  align-content: flex-start;
}

.benefit-card {
  padding: 20px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: default;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-card h4 {
  font-weight: 600;
  font-size: 0.85rem;
  color: #0a0707;
  margin-bottom: 4px;
  font-family: 'Poppins', 'Source Sans Pro', 'Lato', sans-serif;
}

.benefit-card p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  font-weight: 400;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .login-page-container {
    padding: 0;
    height: 100vh;
    min-height: 100vh;
  }

  .login-card {
    padding: 16px;
    gap: 14px;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .login-card::before {
    height: 0;
  }

  .card-section {
    flex: 100%;
    width: 100%;
  }

  .login-section {
    flex: 100%;
    width: 100%;
  }

  .benefits-section {
    display: none;
  }

  .section-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .login-section .section-header h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 8px;
  }

  .login-section .section-header p {
    font-size: 0.95rem;
    text-align: center;
  }

  .benefits-section .section-header h3 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 4px;
  }

  .benefits-section .section-header p {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
  }

  .benefits-grid {
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: none;
    height: 110px;
    align-items: center;
  }

  .benefits-grid::-webkit-scrollbar {
    display: none;
  }

  .benefit-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
    padding: 14px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: default;
  }

  .benefit-icon {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
    flex-shrink: 0;
  }

  .benefit-card h4 {
    font-weight: 600;
    font-size: 1rem;
    color: #0a0707;
    margin-bottom: 4px;
    flex-shrink: 0;
  }

  .benefit-card p {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    font-weight: 400;
    font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
    line-height: 1.3;
    flex-shrink: 0;
  }

  .form-grid {
    gap: 14px;
  }

  .form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
  }

  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
  }

  .form-actions input[type="submit"] {
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
  }

  .remember-text {
    font-size: 0.9rem;
    margin-top: 8px;
  }

  .form-footer-links {
    font-size: 0.9rem;
    margin-top: 16px;
    padding-top: 16px;
  }

  .form-footer-links a {
    color: #6a4d8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .form-footer-links a:hover {
    color: #f1d204;
    text-decoration: underline;
  }

  .benefit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .benefit-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 768px) {
  .login-page-container {
    padding: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-card {
    padding: 12px 8px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    overflow: hidden;
  }

  .login-card::before {
    height: 0;
  }

  .login-section {
    flex: 100%;
    width: 100%;
  }

  .benefits-section {
    display: none;
  }

  .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .login-section .section-header h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 6px;
  }

  .login-section .section-header p {
    font-size: 0.9rem;
    text-align: center;
  }

  .benefits-section .section-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  }

  .benefits-section .section-header h3 {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 4px;
  }

  .benefits-section .section-header p {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
  }

  .benefits-grid {
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    height: 100px;
    align-items: center;
  }

  .benefits-grid::-webkit-scrollbar {
    display: none;
  }

  .benefit-card {
    flex: 0 0 75%;
    min-width: 200px;
    scroll-snap-align: start;
    padding: 12px 16px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: default;
  }

  .benefit-icon {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
    flex-shrink: 0;
  }

  .benefit-card h4 {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a0707;
    margin-bottom: 4px;
    flex-shrink: 0;
  }

  .benefit-card p {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    font-weight: 400;
    font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
    line-height: 1.3;
    flex-shrink: 0;
  }

  .form-grid {
    gap: 12px;
    flex: 1;
    min-height: 0;
  }

  .form-group {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .form-group label {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
  }

  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 16px 16px;
    font-size: 1.15rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
  }

  .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
  }

  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
  }

  .form-actions input[type="submit"] {
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
  }

  .remember-text {
    font-size: 0.9rem;
    margin-top: 8px;
  }

  .form-footer-links {
    font-size: 0.9rem;
    margin-top: 12px;
    padding-top: 12px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .form-footer-links a {
    color: #6a4d8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .form-footer-links a:hover {
    color: #f1d204;
    text-decoration: underline;
  }

  .benefit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .benefit-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 480px) {
  .login-page-container {
    padding: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-card {
    padding: 0;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
  }

  .login-card::before {
    display: none;
  }

  .login-section, .benefits-section {
    width: 100%;
  }

  .login-section {
    flex: 0 0 auto;
    padding: 12px 8px 0 8px;
  }

  .benefits-section {
    display: none;
  }

  .section-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .login-section .section-header h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 6px;
  }

  .login-section .section-header p {
    font-size: 0.85rem;
    text-align: center;
  }

  .benefits-section .section-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  }

  .benefits-section .section-header h3 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 4px;
  }

  .benefits-section .section-header p {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
  }

  .benefits-grid {
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    height: 90px;
    align-items: center;
  }

  .benefits-grid::-webkit-scrollbar {
    display: none;
  }

  .benefit-card {
    flex: 0 0 75%;
    min-width: 180px;
    scroll-snap-align: start;
    padding: 10px 14px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: default;
  }

  .benefit-icon {
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
    flex-shrink: 0;
  }

  .benefit-card h4 {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0a0707;
    margin-bottom: 4px;
    flex-shrink: 0;
  }

  .benefit-card p {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
    font-weight: 400;
    font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
    line-height: 1.3;
    flex-shrink: 0;
  }

  .form-grid {
    gap: 10px;
    flex: 1;
    min-height: 0;
  }

  .form-group {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .form-group label {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
  }

  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 16px 16px;
    font-size: 1.15rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
  }

  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  .form-actions input[type="submit"] {
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  .remember-text {
    font-size: 0.85rem;
    margin-top: 6px;
  }

  .form-footer-links {
    font-size: 0.85rem;
    margin-top: 10px;
    padding-top: 10px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .form-footer-links a {
    color: #6a4d8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .form-footer-links a:hover {
    color: #f1d204;
    text-decoration: underline;
  }

  .benefit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .benefit-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

/* Utility classes for form validation error messages */
.field_errors {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 8px;
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', sans-serif;
  font-weight: 400;
}

/* Focus ring for disabled buttons */
.form-footer-links a:focus {
  outline: none;
  color: #f1d204;
  text-decoration: underline;
}

/* Focus ring for all inputs and buttons */
.form-group input:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-actions input:focus,
.form-actions input[type="submit"]:focus {
  outline: none;
  border-color: #6a4d8a;
  box-shadow: 0 0 0 3px rgba(106, 77, 138, 0.1);
}

/* Loading state */
.form-actions input[type="submit"]:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background-color: #ccc;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Touch feedback optimization */
.benefit-card {
  -webkit-tap-highlight-color: transparent;
}

/* Touch action and accessibility improvements */
.form-group input[type="email"],
.form-group input[type="password"],
.form-actions input[type="submit"],
.benefit-card {
  -webkit-appearance: none;
  touch-action: manipulation;
  user-select: auto;
}

.benefit-card {
  -webkit-tap-highlight-color: transparent;
  cursor: default;
}

/* Smooth scrolling for benefits row */
.benefits-grid {
  scroll-behavior: smooth;
}

/* Hide non-essential elements on mobile */

/* Prevent zoom on double-tap for inputs */
input, button {
  -webkit-tap-highlight-color: transparent;
}

/* Alert Messages */
.alert {
  padding: 12px 20px;
  margin: 0 0 16px 0;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #6a4d8a;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-danger {
  background-color: #dc3545;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-danger:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert a {
  color: #f1d204;
  text-decoration: none;
  font-weight: 600;
}

.alert a:hover {
  text-decoration: underline;
}

/* Alert styles for mobile devices */
@media (max-width: 480px) {
  .alert {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .alert {
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}