/*-----------------------------------*\
  #SIGNIN.CSS
\*-----------------------------------*/

/**
 * Sign In Page Styles
 * Styled to match the Ananasa Crochet theme
 */

/*-----------------------------------*\
  #HEADER OVERRIDE FOR SIGNIN PAGE
\*-----------------------------------*/

/* Override header background for sign-in page - Desktop only */
@media (min-width: 992px) {
  body .header {
    background-color: var(--bright-yellow-crayola) !important;
  }

  body .header .navbar-link {
    color: var(--white);
  }

  body .header .navbar-link:hover {
    color: var(--theme-accent);
  }

  body .header .action-btn {
    color: var(--white);
  }

  body .header .action-btn:hover {
    color: var(--theme-accent);
  }

  body .header .logo {
    color: var(--white);
  }

  /* When header is active (scrolled), change to white background with dark text */
  body .header.active {
    background-color: var(--white) !important;
  }

  body .header.active .navbar-link {
    color: var(--raisin-black);
  }

  body .header.active .navbar-link:hover {
    color: var(--theme-accent);
  }

  body .header.active .action-btn {
    color: var(--raisin-black);
  }

  body .header.active .action-btn:hover {
    color: var(--theme-accent);
  }

  /* Keep user button green when signed in, even when scrolled */
  body .header.active .action-btn.user.signed-in {
    color: var(--theme-accent) !important;
  }

  body .header.active .action-btn.user.signed-in:hover {
    color: var(--bright-yellow-crayola) !important;
  }

  body .header.active .logo {
    color: var(--raisin-black);
  }

  body .header.active .navbar-action-btn {
    color: var(--raisin-black);
    border-color: var(--raisin-black);
  }

  body .header.active .navbar-action-btn:hover {
    background-color: var(--raisin-black);
    color: var(--white);
  }
}

/* Mobile and tablet styles - white navbar with dark text */
@media (max-width: 991.99px) {
  body .header {
    background-color: var(--white) !important;
  }

  body .header .navbar-link {
    color: var(--raisin-black);
  }

  body .header .navbar-link:hover {
    color: var(--theme-accent);
  }

  body .header .action-btn {
    color: var(--raisin-black);
  }

  body .header .action-btn:hover {
    color: var(--theme-accent);
  }

  body .header .logo {
    color: var(--raisin-black);
  }

  body .header .navbar-action-btn {
    color: var(--raisin-black);
    border-color: var(--raisin-black);
  }

  body .header .navbar-action-btn:hover {
    background-color: var(--raisin-black);
    color: var(--white);
  }

  /* Mobile header stays white when scrolled */
  body .header.active {
    background-color: var(--white) !important;
  }

  body .header.active .navbar-link {
    color: var(--raisin-black);
  }

  body .header.active .action-btn {
    color: var(--raisin-black);
  }

  /* Keep user button green when signed in, even when scrolled on mobile */
  body .header.active .action-btn.user.signed-in {
    color: var(--theme-accent) !important;
  }

  body .header.active .action-btn.user.signed-in:hover {
    color: var(--bright-yellow-crayola) !important;
  }

  body .header.active .logo {
    color: var(--raisin-black);
  }
}

/*-----------------------------------*\
  #SIGNIN SECTION
\*-----------------------------------*/

.signin-section {
  padding: 160px 0 80px;
  background: linear-gradient(315deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

body:has(.account-content) .signin-section {
  padding-bottom: 60px;
}

/* Fix for account page footer-bottom extra padding */
body:has(.account-content) .footer-bottom {
  padding-block: 10px;
}

body:has(.account-content) .copyright {
  margin-block-end: 5px;
}

.signin-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(109, 185, 109, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(109, 185, 109, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.signin-container {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  z-index: 2;
}

.signin-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-1);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-2);
  margin-top: 20px;
}

.signin-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--theme-accent);
}

.signin-form-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.1);
}

/*-----------------------------------*\
  #FORM HEADER
\*-----------------------------------*/

.form-header {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure form header elements stack properly */
.form-header .form-title,
.form-header .form-subtitle {
  display: block;
  width: 100%;
}

.form-title {
  font-family: var(--ff-carter_one);
  font-size: var(--fs-3);
  color: var(--theme-accent);
  margin-bottom: 8px;
}

.form-subtitle {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--sonic-silver);
  font-weight: var(--fw-400);
}

/*-----------------------------------*\
  #FORM STYLES
\*-----------------------------------*/

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.name-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.input-wrapper {
  position: relative;
}

.input-label {
  display: block;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  color: var(--raisin-black);
  margin-bottom: 8px;
  transition: var(--transition-1);
}

.input-field {
  width: 100%;
  padding: 15px 50px 15px 15px;
  border: 2px solid var(--platinum);
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--raisin-black);
  background: var(--white);
  transition: var(--transition-1);
  outline: none;
}

/* Adjust padding for password fields */
.input-wrapper:has(.password-toggle) .input-field {
  padding-right: 50px;
}

.input-field:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px hsla(120, 30%, 60%, 0.1);
}

.input-field:focus + .input-icon {
  color: var(--theme-accent);
}

.input-field::placeholder {
  color: var(--spanish-gray);
}

.input-icon {
  position: absolute;
  top: calc(50% + 5px);
  right: 15px;
  font-size: 18px;
  color: var(--spanish-gray);
  transition: var(--transition-1);
  pointer-events: none;
}

/* Hide the input icon when there's a password toggle */
.input-wrapper:has(.password-toggle) .input-icon {
  display: none;
}

.password-toggle {
  position: absolute;
  top: calc(50% + 2px);
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--spanish-gray);
  transition: var(--transition-1);
  padding: 5px;
  z-index: 1;
}

/* Change password modal password toggles should be centered properly */
.change-password-form .password-toggle {
  top: 50%;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--theme-accent);
}

.password-toggle ion-icon {
  display: block;
}

/*-----------------------------------*\
  #FORM OPTIONS
\*-----------------------------------*/

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  color: var(--sonic-silver);
  flex: 1;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--platinum);
  border-radius: 3px;
  position: relative;
  transition: var(--transition-1);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  flex: 1;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  hyphens: auto;
}

.forgot-password {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  color: var(--theme-accent);
  text-decoration: none;
  font-weight: var(--fw-700);
  transition: var(--transition-1);
  white-space: nowrap;
}

.forgot-password:hover {
  color: var(--bright-yellow-crayola);
  text-decoration: underline;
}

.terms-link,
.privacy-link {
  color: var(--theme-accent);
  text-decoration: none;
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.terms-link:hover,
.privacy-link:hover {
  color: var(--bright-yellow-crayola);
  text-decoration: underline;
}

/*-----------------------------------*\
  #SUBMIT BUTTON
\*-----------------------------------*/

.submit-btn {
  position: relative;
  width: 100%;
  padding: 15px;
  background: var(--theme-accent);
  border: none;
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px hsla(120, 30%, 60%, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.submit-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: var(--theme-accent) !important;
}

.submit-btn:disabled:active {
  transform: none !important;
}

/* Loading state - completely override everything */
.submit-btn.loading {
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  background: var(--theme-accent) !important;
  transition: none !important;
}

.submit-btn.loading:hover {
  transform: none !important;
  box-shadow: none !important;
  background: var(--theme-accent) !important;
}

.submit-btn.loading:active {
  transform: none !important;
}

.submit-btn.loading:focus {
  transform: none !important;
  box-shadow: none !important;
}

.submit-btn.loading::before {
  display: none !important;
}

.submit-btn.loading::after {
  display: none !important;
}

.submit-btn.loading .btn-text {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Loading indicator - simple text dots */
.submit-btn .loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 10;
  pointer-events: none;
  color: var(--white);
  font-weight: var(--fw-700);
  font-size: var(--fs-6);
}

.submit-btn.loading .loading-indicator {
  display: block !important;
}

/*-----------------------------------*\
  #LOADING INDICATOR
\*-----------------------------------*/

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.loading-dots {
  display: inline-block;
  animation: loadingDots 1.4s infinite;
}

.loading-dots::after {
  content: '';
  animation: loadingDots 1.4s infinite;
}

@keyframes loadingDots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

/*-----------------------------------*\
  #FORM DIVIDER
\*-----------------------------------*/

.form-divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--platinum);
}

.form-divider span {
  background: var(--white);
  padding: 0 15px;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  color: var(--spanish-gray);
  position: relative;
  z-index: 1;
}

/*-----------------------------------*\
  #SWITCH FORM
\*-----------------------------------*/

.switch-form {
  text-align: center;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  color: var(--sonic-silver);
  margin: 0;
}

.switch-btn {
  background: none;
  border: none;
  color: var(--theme-accent);
  font-weight: var(--fw-700);
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition-1);
  font-family: inherit;
  font-size: inherit;
}

.switch-btn:hover {
  color: var(--bright-yellow-crayola);
}

/*-----------------------------------*\
  #PASSWORD REQUIREMENTS
\*-----------------------------------*/

.password-requirements {
  background: var(--platinum);
  border-radius: var(--radius-4);
  padding: 15px;
  margin: 10px 0;
}

.requirements-title {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  color: var(--raisin-black);
  margin: 0 0 10px 0;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.requirement {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-8);
  color: var(--sonic-silver);
  position: relative;
  padding-left: 20px;
  transition: var(--transition-1);
}

.requirement::before {
  content: '✗';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bittersweet);
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.requirement.valid {
  color: var(--theme-accent);
}

.requirement.valid::before {
  content: '✓';
  color: var(--theme-accent);
}

/*-----------------------------------*\
  #DECORATIVE ELEMENTS
\*-----------------------------------*/

.decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.crochet-pattern {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--theme-accent);
  opacity: 0.1;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.pattern-1 {
  top: 20%;
  left: -30px;
  animation-delay: 0s;
}

.pattern-2 {
  top: 60%;
  right: -30px;
  animation-delay: 2s;
}

.pattern-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/*-----------------------------------*\
  #MODAL STYLES
\*-----------------------------------*/

/* Account Page Modal Styles */
/* Fix modal positioning and z-index for account page modals */
#signout-confirm-modal,
#edit-profile-modal,
#change-password-modal,
#address-modal,
#delete-address-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
  backdrop-filter: blur(5px);
}

#signout-confirm-modal.show,
#edit-profile-modal.show,
#change-password-modal.show,
#address-modal.show,
#delete-address-modal.show {
  opacity: 1;
  visibility: visible;
}

/* Ensure modal content is properly styled */
#signout-confirm-modal .modal-content,
#edit-profile-modal .modal-content,
#change-password-modal .modal-content,
#address-modal .modal-content,
#delete-address-modal .modal-content {
  background: var(--white);
  border-radius: var(--radius-10);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: var(--transition-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#signout-confirm-modal.show .modal-content,
#edit-profile-modal.show .modal-content,
#change-password-modal.show .modal-content,
#address-modal.show .modal-content,
#delete-address-modal.show .modal-content {
  transform: scale(1);
}

/* Edit Profile Modal Styles */
.edit-profile-form {
  text-align: left;
}

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

.edit-profile-form .form-label {
  display: block;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  color: var(--raisin-black);
  margin-bottom: 8px;
}

.edit-profile-form .form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--platinum);
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--raisin-black);
  background: var(--white);
  transition: var(--transition-1);
  outline: none;
}

.edit-profile-form .form-input:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px hsla(120, 30%, 60%, 0.1);
}

.edit-profile-form .form-input::placeholder {
  color: var(--spanish-gray);
}

/* Change Password Modal Styles */
.change-password-form {
  text-align: left;
}

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

.change-password-form .form-label {
  display: block;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  color: var(--raisin-black);
  margin-bottom: 8px;
}

.change-password-form .form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--platinum);
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--raisin-black);
  background: var(--white);
  transition: var(--transition-1);
  outline: none;
}

.change-password-form .form-input:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px hsla(120, 30%, 60%, 0.1);
}

.change-password-form .form-input::placeholder {
  color: var(--spanish-gray);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--platinum);
}

.form-actions .modal-btn {
  min-width: 100px;
}

/* Loading state for save button */
#save-profile-btn,
#change-password-btn {
  position: relative;
  min-width: fit-content;
  width: auto;
}

#save-profile-btn .btn-text,
#change-password-btn .btn-text {
  display: inline-block;
}

#save-profile-btn.loading .btn-text,
#change-password-btn.loading .btn-text {
  visibility: hidden;
}

#save-profile-btn.loading .loading-indicator,
#change-password-btn.loading .loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Debug: Make sure loading state is visible */
#change-password-btn.loading {
  background-color: #f0f0f0 !important;
  cursor: not-allowed !important;
}

#save-profile-btn:disabled,
#change-password-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Modal Overlay Styles (for Forgot Password Modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* Increased z-index to be above navbar */
  backdrop-filter: blur(5px);
}

/* Forgot Password Modal Styles */
#forgot-password-modal .modal {
  background: var(--white);
  border-radius: var(--radius-10);
  padding: 0;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: var(--transition-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

#forgot-password-modal .modal.show {
  transform: scale(1);
}

#forgot-password-modal .modal-header {
  background: var(--theme-accent);
  color: var(--white);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: none;
}

#forgot-password-modal .modal-header h3 {
  color: var(--white);
  margin: 0;
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
}

#forgot-password-modal .close-modal {
  color: var(--white);
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#forgot-password-modal .close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
}

#forgot-password-modal .modal-body {
  padding: 30px;
  text-align: left;
}

#forgot-password-modal .modal-body p {
  margin-bottom: 20px;
  color: var(--raisin-black);
  font-size: var(--fs-6);
  line-height: 1.5;
}

#forgot-password-modal .forgot-password-form {
  margin-top: 20px;
}

#forgot-password-modal .forgot-password-form .input-wrapper {
  margin-bottom: 20px;
}

#forgot-password-modal .forgot-password-form .submit-btn {
  width: 100%;
  margin-top: 10px;
}

/* Sign Out Confirmation Modal Styles */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--platinum);
}

.modal-header h3 {
  font-family: var(--ff-carter_one);
  font-size: var(--fs-4);
  color: var(--raisin-black);
  margin: 0;
}

.modal-body {
  margin-bottom: 25px;
}

.modal-body .modal-icon {
  margin-bottom: 15px;
  text-align: center;
}

.modal-body .modal-icon ion-icon {
  font-size: 48px;
  color: var(--bittersweet);
}

.modal-body p {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--raisin-black);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.modal-subtitle {
  font-size: var(--fs-7);
  color: var(--sonic-silver);
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  cursor: pointer;
  transition: var(--transition-1);
  min-width: 100px;
}

.modal-btn.primary {
  background: var(--bittersweet);
  color: var(--white);
}

.modal-btn.primary:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.modal-btn.secondary {
  background: var(--platinum);
  color: var(--raisin-black);
}

.modal-btn.secondary:hover {
  background: var(--sonic-silver);
  transform: translateY(-2px);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--spanish-gray);
  transition: var(--transition-1);
}

.close-modal:hover {
  color: var(--raisin-black);
}

.modal-icon {
  margin-bottom: 20px;
  text-align: center;
}

.modal-icon ion-icon {
  font-size: 60px;
}

.modal-body p {
  margin: 0;
  font-family: var(--ff-nunito_sans);
  font-size: 18px;
  color: var(--raisin-black);
  line-height: 1.5;
  text-align: center;
}

#success-icon {
  color: var(--theme-accent);
}

#error-icon {
  color: var(--bittersweet);
}

.modal h3 {
  font-family: var(--ff-carter_one);
  font-size: var(--fs-4);
  color: var(--raisin-black);
  margin: 0 0 15px 0;
}

.modal p {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--sonic-silver);
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.modal-button {
  padding: 12px 30px;
  background: var(--theme-accent);
  border: none;
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-1);
}

.modal-button:hover {
  background: var(--bright-yellow-crayola);
  transform: translateY(-2px);
}

/*-----------------------------------*\
  #ACCOUNT PAGE STYLES
\*-----------------------------------*/

.account-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.account-section {
  background: var(--platinum);
  border-radius: var(--radius-10);
  padding: 25px;
  transition: var(--transition-1);
}

.account-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.account-section-title {
  font-family: var(--ff-carter_one);
  font-size: var(--fs-5);
  color: var(--raisin-black);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-section-title ion-icon {
  font-size: 24px;
  color: var(--theme-accent);
}

/* Profile Information */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  color: var(--sonic-silver);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-value {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  color: var(--raisin-black);
  font-weight: var(--fw-400);
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.profile-action-btn {
  background: var(--theme-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-4);
  padding: 12px 20px;
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  cursor: pointer;
  transition: var(--transition-1);
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.profile-action-btn:hover {
  background: var(--bright-yellow-crayola);
  transform: translateY(-2px);
}

/* Account Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.account-action-btn {
  background: var(--white);
  border: 2px solid var(--platinum);
  border-radius: var(--radius-10);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition-1);
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
}

.account-action-btn:hover {
  border-color: var(--theme-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.account-action-btn.secondary:hover {
  background: var(--theme-accent);
  color: var(--white);
}

.account-action-btn.danger {
  border-color: var(--bittersweet);
}

.account-action-btn.danger:hover {
  background: var(--bittersweet);
  color: var(--white);
  border-color: var(--bittersweet);
}

.account-action-btn ion-icon {
  font-size: 24px;
  color: var(--theme-accent);
  transition: var(--transition-1);
}

.account-action-btn.danger ion-icon {
  color: var(--bittersweet);
}

.account-action-btn:hover ion-icon {
  color: var(--white);
}

.btn-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-title {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  color: var(--raisin-black);
  transition: var(--transition-1);
}

.btn-subtitle {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-8);
  color: var(--sonic-silver);
  transition: var(--transition-1);
}

/* Desktop: Larger subtitle font size */
@media (min-width: 769px) {
  .btn-subtitle {
    font-size: var(--fs-7);
  }
}

.account-action-btn:hover .btn-title,
.account-action-btn:hover .btn-subtitle {
  color: var(--white);
}

/* Sign Out Section */
.sign-out-section {
  text-align: center;
}

/*-----------------------------------*\
  #RESPONSIVE DESIGN
\*-----------------------------------*/

@media (max-width: 575px) {
  .signin-section {
    padding: 140px 0 60px;
  }

  .signin-form-wrapper {
    padding: 25px 15px;
    margin: 15px 10px 0;
  }

  .form-title {
    font-size: var(--fs-4);
  }

  .name-inputs {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .modal-content {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .decorative-elements {
    display: none;
  }
  
  /* Account page responsive */
  .account-content {
    gap: 20px;
  }
  
  .account-section {
    padding: 20px;
  }
  
  .profile-info {
    gap: 12px;
  }
  
  .profile-field {
    gap: 3px;
  }
  
  .field-value {
    font-size: var(--fs-7);
  }
  
  .account-action-btn {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 18px 12px;
  }
  

  
  .btn-content {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .signin-container {
    max-width: 100%;
    margin: 0 10px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  /* Account page responsive */
  .account-section-title {
    font-size: var(--fs-6);
  }
  
  .action-buttons {
    gap: 12px;
  }
  
  .account-action-btn {
    padding: 25px 15px;
    gap: 15px;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .account-action-btn ion-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  /* Make other account action buttons smaller */
  .account-action-btn {
    padding: 20px 12px !important;
  }
  
  .account-action-btn ion-icon {
    font-size: 28px !important;
  }
  
  .btn-content {
    align-items: center !important;
    text-align: center !important;
    gap: 8px;
  }
  
  .btn-title {
    font-size: var(--fs-5);
    font-weight: var(--fw-700);
  }
  
  .btn-subtitle {
    font-size: var(--fs-7);
    line-height: 1.4;
  }
}

/* Desktop styles for better text wrapping */
@media (min-width: 769px) {
  .checkbox-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .checkbox-wrapper {
    min-width: 0;
  }
  
  .signin-section {
    padding: 180px 0 80px;
  }
  
  .signin-form-wrapper {
    margin-top: 30px;
  }
  
  /* Ensure account action buttons are left-aligned in desktop */
  .account-action-btn {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  
  .btn-content {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

/*-----------------------------------*\
  #ANIMATIONS
\*-----------------------------------*/

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signin-form-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

.form-header {
  animation: fadeInDown 0.6s ease-out 0.2s both;
}

.auth-form {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/*-----------------------------------*\
  #ERROR STATES
\*-----------------------------------*/

.input-field.error {
  border-color: var(--bittersweet);
  box-shadow: 0 0 0 3px hsla(9, 96%, 69%, 0.1);
}

.input-field.error + .input-icon {
  color: var(--bittersweet);
}

.error-message {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-8);
  color: var(--bittersweet);
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/*-----------------------------------*\
  #SUCCESS STATES
\*-----------------------------------*/

.input-field.success {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px hsla(120, 30%, 60%, 0.1);
}

.input-field.success + .input-icon {
  color: var(--theme-accent);
}

/*-----------------------------------*\
  #FOCUS TRAP
\*-----------------------------------*/

.signin-form-wrapper:focus-within {
  box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.15);
}

/*-----------------------------------*\
  #SNACKBAR NOTIFICATION
\*-----------------------------------*/

.snackbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  min-width: 300px;
  transform: translateX(calc(100% + 20px));
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
  opacity: 0;
}

.snackbar.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.snackbar-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--bright-yellow-crayola);
  position: relative;
  overflow: hidden;
}

.snackbar-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.snackbar-content.success {
  border-left-color: #4CAF50;
}

.snackbar-content.error {
  border-left-color: #f44336;
}

.snackbar-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.snackbar-icon ion-icon {
  font-size: 20px;
  color: var(--raisin-black);
}

#snackbar-success-icon {
  color: #4CAF50;
}

#snackbar-error-icon {
  color: #f44336;
}

.snackbar-text {
  flex: 1;
  min-width: 0;
}

.snackbar-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--raisin-black);
  line-height: 1.2;
}

.snackbar-text p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.snackbar-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  margin-top: 2px;
}

.snackbar-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.snackbar-close ion-icon {
  font-size: 16px;
  color: #666;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 350px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  border-left: 4px solid var(--theme-accent);
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-content ion-icon {
  font-size: 20px;
  color: var(--theme-accent);
}

.notification-success {
  border-left-color: #4CAF50;
}

.notification-success .notification-content ion-icon {
  color: #4CAF50;
}

.notification-error {
  border-left-color: #f44336;
}

.notification-error .notification-content ion-icon {
  color: #f44336;
}

.notification span {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  color: var(--raisin-black);
  font-weight: var(--fw-600);
}

/* Mobile responsive adjustments */
@media (max-width: 575px) {
  .snackbar {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
  }
  
  .snackbar-content {
    padding: 14px 16px;
  }
  
  .snackbar-text h4 {
    font-size: 15px;
  }
  
  .snackbar-text p {
    font-size: 13px;
  }
}

/* ==================== SHIPPING ADDRESSES STYLES ==================== */

/* Address modal specific styles */
#address-modal .modal-content {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  text-align: left;
  overflow-y: auto;
  margin: auto;
}

/* Ensure modal displays properly */
#address-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

#address-modal.show {
  display: flex;
}

/* Ensure delete modal displays properly */
#delete-address-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

#delete-address-modal.show {
  display: flex;
}

#address-modal .auth-form {
  margin-top: 20px;
  padding-bottom: 20px;
}

#address-modal .input-wrapper {
  margin-bottom: 20px;
}

#address-modal .name-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

#address-modal .checkbox-wrapper {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

#address-modal .checkbox-wrapper input[type="checkbox"] {
  opacity: 1;
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 1;
  margin: 0;
  display: block;
  accent-color: var(--theme-accent);
}

#address-modal .checkbox-wrapper .checkmark {
  display: none;
}

#address-modal .checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 20px 0;
}

#address-modal .checkbox-wrapper .checkbox-text {
  cursor: pointer;
  user-select: none;
}

/* Custom checkbox styling */
#address-modal .checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background-color: white;
  cursor: pointer;
  position: relative;
}

#address-modal .checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
}

#address-modal .checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Address list styles */
.account-section[data-address-id] {
  background: var(--white);
  border: 2px solid var(--platinum);
  border-radius: var(--radius-8);
  padding: 20px;
  margin-bottom: 15px;
  transition: var(--transition-1);
  position: relative;
}

.account-section[data-address-id]:hover {
  border-color: var(--theme-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Default indicator styling */
.default-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--theme-accent);
  color: white;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Profile action button styles */
.profile-action-btn {
  background: var(--theme-accent);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-4);
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  cursor: pointer;
  transition: var(--transition-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-action-btn:hover {
  background: var(--bright-yellow-crayola);
  transform: translateY(-2px);
}

.profile-action-btn:active {
  transform: translateY(0);
}

/* Button loading state */
.profile-action-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-action-btn.loading:hover {
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #address-modal .name-inputs {
    grid-template-columns: 1fr;
  }
  
  #address-modal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .account-section[data-address-id] {
    padding: 15px;
  }
  
  .profile-action-btn {
    font-size: var(--fs-7);
    padding: 6px 12px;
  }
}