/* ==========================================================================
   Hisense Authentication Pages Styles
   ========================================================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.hisense-register-body,
body.hisense-account-lost-password {
  min-height: 100vh;
}

/* Hide all default WordPress elements */
body.hisense-register-body .site-header,
body.hisense-register-body .site-footer,
body.hisense-register-body .site-navigation,
body.hisense-register-body #masthead,
body.hisense-register-body #colophon,
body.hisense-register-body .header,
body.hisense-register-body .footer,
body.hisense-register-body .navigation,
body.hisense-register-body .menu,
body.hisense-register-body .social-icons,
body.hisense-register-body .logo {
  display: none !important;
}

/* Registration Page Container */
.hisense-register-page {
  background: url("../images/register.jpg") center center/cover no-repeat;
  position: relative;
  padding: 80px 0 90px;
  min-height: calc(100vh - 68px);
}

.hisense-register-page .not-logged-in .woocommerce+p {
  color: #5f5f5f;
  max-width: 600px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.5);
  padding: 40px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12.5px);
  line-height: 1.4;
}

.hisense-register-page .not-logged-in .woocommerce-message {
  max-width: 600px;
  margin: 50px auto;
  border: 0;
  outline: 0 !important;
  color: #000000;
}

/* Back Button */
.register-back-button {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.register-back-button img {
  transition: all 0.3s ease;
}

.register-back-button:hover {
  color: var(--hisense-primary);
  text-decoration: none;
}

.register-back-button:hover img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(87%) saturate(5594%) hue-rotate(151deg) brightness(91%) contrast(97%);
}

/* Registration Form Container */
.register-form-container {
  background: rgba(255, 255, 255, 0.5);
  padding: 110px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12.5px);
  max-width: 1280px;
  margin: 65px auto 0;
}

.register-subtitle {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

/* Form Styles */
.register-form-container .woocommerce-form {
  margin-top: 50px;
}

.auth-form-group {
  margin-bottom: 15px;
}

.auth-form-row .auth-input,
.auth-form-group .auth-input {
  width: 100%;
  padding: 13px 30px;
  border: 1px solid #c9c9c9;
  border-radius: 300px;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #000000;
}

.auth-form-row .auth-input::placeholder,
.auth-form-group .auth-input::placeholder {
  color: #999999;
}

.auth-input:focus {
  outline: none;
}

/* Terms and Conditions */
.newsletter_checkbox {
  margin: 30px 0 50px;
}

.terms_checkbox {
  margin-top: 30px;
}

.auth-checkbox-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  cursor: pointer;
}

.auth-checkbox-label span {
  position: relative;
  color: #999999;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-left: 15px;
}

.auth-checkbox-label span:after {
  content: "";
  position: absolute;
  background-color: #ffffff;
  top: 3px;
  left: -25px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  border-radius: 3px;
  cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"]:checked+.terms-text::after,
.auth-checkbox-label input[type="checkbox"]:checked+.newsletter-text::after {
  background: url("../images/check.png") #049c98 no-repeat center;
  color: #ffffff;
}

.terms-text a,
.newsletter-text a {
  color: #049c98;
  text-decoration: underline;
}

.auth-checkbox-label .field-error {
  width: 100%;
}

/* Error Messages */
.woocommerce-error,
.woocommerce-message {
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 14px;
}

.woocommerce-error:focus-visible {
  outline: none;
}

.woocommerce-notices-wrapper .woocommerce-error li {
  border: none;
}
.woocommerce-notices-wrapper ul li {
  padding-left: 40px;
}

.woocommerce-error {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12.5px);
  border: 1px solid #fcc;
  color: #c33;
}

.woocommerce-message {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12.5px);
  border: 1px solid #cfc;
  color: #3c3;
}

/* Field Error Styling */
.field-error {
  color: #e74c3c !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  display: block;
}

.auth-input.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.auth-input.success {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

.auth-button.secondary-button {
  width: 100%;
  max-width: unset !important;
  font-weight: 400;
}

/* Loading state */
.auth-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.auth-button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Login Link */
.register-login-link {
  color: #808080;
  margin-top: 35px;
  font-size: 16px;
  line-height: 50px;
  font-weight: 400;
}

.register-login-link a {
  color: #049c98;
  text-decoration: none;
}

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

.login_row {
  align-items: flex-end;
}

.social_login h6 {
  color: #000000;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 15px;
}

/* Social Login Buttons */
.social-login-buttons {
  display: flex;
  gap: 30px;
  margin-top: 15px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 300px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon {
  width: 20px;
  height: 20px;
}

.google-btn {
  background: transparent;
  color: #595959;
  border: 1px solid #d0d0d0;
}

.facebook-btn {
  background: #435897;
  color: #ffffff;
  border: none;
}

.apple-btn {
  background: #262626;
  color: #ffffff;
  border: none;
}

/* ==========================================================================
   Additional Auth Body Styles (for MyAccount pages)
   ========================================================================== */

/* Hide default WordPress elements on auth pages */
body.hisense-auth-body .site-header,
body.hisense-auth-body .site-footer,
body.hisense-auth-body .site-navigation,
body.hisense-auth-body #masthead,
body.hisense-auth-body #colophon,
body.hisense-auth-body .header,
body.hisense-auth-body .footer {
  display: none !important;
}

/* Auth Form */
.hisense-auth-form {
  background: rgba(255, 255, 255, 0.5);
  padding: 110px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12.5px);
  max-width: 734px;
  margin: 65px auto 0;
}

.hisense-auth-form .auth-form-group+.auth-form-group {
  margin-top: 25px;
}

/* Title */

.auth-subtitle {
  color: #000000;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.4;
}

/* Form Groups */
.auth-form-row {
  display: flex;
  gap: 15px;
}

.auth-form-group.half {
  flex: 1;
}

.auth-input::placeholder {
  color: #9ca3af;
}

/* Enhanced Checkbox Styles */
.auth-checkbox-label input[type="checkbox"] {
  opacity: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.auth-checkbox-label input[type="checkbox"]:checked+.checkmark {
  background: #667eea;
  border-color: #667eea;
}

.auth-checkbox-label input[type="checkbox"]:checked+.checkmark::after {
  content: "âœ“";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.show-password-input {
  display: none;
}

.switch-link,
.auth-switch-form p {
  color: #808080;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 400;
}

.auth-submit-btn.secondary-button {
  width: 100%;
  margin-top: 40px;
}

.auth-switch-form {
  margin-top: 25px;
}

.auth-switch-form a {
  color: #049c98;
  text-decoration: underline;
}

.or-social {
  display: flex;
  align-items: center;
  padding: 35px 0;
}

.or-social span {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.or-social p {
  color: #969696;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  padding: 0 18px;
  margin: 0;
  text-transform: capitalize;
}

.hisense-register-page section.container {
  padding: 0;
  max-width: unset;
}




@media (max-width: 1550px) {
  .hisense-register-page {
    padding: 60px 0 70px;
  }

  .register-back-button {
    font-size: 16px;
    gap: 10px;
  }

  .register-back-button img {
    width: 20px;
  }

  .register-form-container {
    background: rgba(255, 255, 255, 0.5);
    padding: 95px;
    margin: 55px auto 0;
    max-width: 1190px;
  }

  .register-subtitle {
    font-size: 14px;
    line-height: 24px;
  }

  .register-form-container .woocommerce-form {
    margin-top: 35px;
  }

  .auth-form-row .auth-input,
  .auth-form-group .auth-input {
    padding: 12px 30px;
    font-size: 14px;
  }

  .newsletter_checkbox {
    margin: 25px 0 45px;
  }

  .terms_checkbox {
    margin-top: 25px;
  }

  .auth-checkbox-label span {
    font-size: 14px;
  }

  .social-login-buttons {
    gap: 25px;
  }

  .social-btn {
    font-size: 14px;
    padding: 12px 16px;
  }

  .register-login-link {
    font-size: 14px;
    margin-top: 28px;
  }

  .hisense-auth-form {
    padding: 95px;
    margin: 55px auto 0;
  }

  .hisense-auth-form .auth-form-group+.auth-form-group {
    margin-top: 20px;
  }

  .switch-link,
  .auth-switch-form p {
    font-size: 14px;
  }

  .auth-submit-btn.secondary-button {
    margin-top: 30px;
  }

  .auth-switch-form {
    margin-top: 20px;
  }

  .or-social {
    padding: 30px 0;
  }

  .or-social p {
    font-size: 18px;
  }

  .auth-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .hisense-register-page .not-logged-in .woocommerce+p {
    font-size: 14px;
    padding: 30px;
  }

 
}

@media (max-width: 1200px) {
  .hisense-register-page {
    padding: 50px 0 60px;
  }

  .register-back-button {
    font-size: 16px;
    gap: 10px;
  }

  .register-back-button {
    font-size: 15px;
  }

  .register-form-container {
    padding: 75px;
    margin: 45px auto 0;
  }

  .register-form-container .woocommerce-form {
    margin-top: 25px;
  }

  .newsletter_checkbox {
    margin: 18px 0 30px;
  }

  .terms_checkbox {
    margin-top: 18pxx;
  }

  .social-login-buttons {
    gap: 15px;
  }

  .register-login-link {
    margin-top: 20px;
  }

  .hisense-auth-form {
    padding: 75px;
    margin: 45px auto 0;
  }

  .or-social {
    padding: 20px 0;
  }

  .or-social p {
    font-size: 17px;
  }

  .hisense-auth-form .auth-form-group+.auth-form-group {
    margin-top: 15px;
  }

  .auth-submit-btn.secondary-button {
    margin-top: 25px;
  }

  .auth-subtitle {
    margin-bottom: 20px;
  }
}

/* Responsive */
@media (max-width: 768px) {

  .register-form-container,
  .hisense-auth-form {
    padding: 30px 20px;
    margin: 20px;
  }

  .register-back-button {
    font-size: 14px;
  }

  .auth-form-row {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .social_login {
    margin-top: 15px;
  }

  .social_login h6 {
    text-align: center;
  }

  .auth-subtitle {
    margin-bottom: 15px;
  }

  .auth-submit-btn.secondary-button {
    margin-top: 15px;
  }
}

@media (max-width: 580px) {
  .social-login-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  .register-form-container,
  .hisense-auth-form {
    margin: 20px 0 0 0;
  }

  .or-social {
    padding: 15px 0;
  }

  .or-social p {
    font-size: 16px;
  }

  .auth-form-row .auth-input,
  .auth-form-group .auth-input {
    font-size: 16px;
  }
}

@media (max-width: 375px) {

  .register-form-container,
  .hisense-auth-form {
    padding: 30px 20px;
  }
}