/* app/code/SwiftSolutions/CustomerAccount/view/frontend/web/css/authentication.css */

/* ========== language specific styles ========== */
:lang(ar) .block.customer-account-block {
  direction: rtl;
}

:lang(ar) .customer-account-block .fieldset>.field:not(.choice)>.label,
:lang(ar) .customer-account-block .mage-error {
  text-align: right;
  display: block;
}

:lang(ar) .customer-account-block .actions-toolbar .primary {
  float: right;
}

:lang(ar) .customer-account-block .secondary-btn {
  text-align: left;
}

:lang(ar) .field.field-name-firstname {
  padding: 0;
  padding-left: 5px;
}

:lang(ar) .field.field-name-lastname {
  padding: 0;
  padding-right: 5px;

}

/* ========== BASE FORM STYLES ========== */
.customer-account-block {
  max-width: 500px;
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
}

.customer-account-block input#mobilenumber {
  text-align: left !important;
}

.customer-account-block .fieldset>.field:not(.choice)>.label,
.customer-account-block .mage-error {
  text-align: left;
  display: block;
}

.block-title {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

/* mobile number with flag and country code */
.field.mobilenumber .control {
  position: relative;
}

.field.mobilenumber .flag,
.field.mobilenumber .country-code {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: top 0.2s ease;
  direction: ltr !important;
}

.field.mobilenumber .flag {
  left: 10px;
  width: 20px;
  height: 14px;
  background: url("../images/flag.svg") no-repeat center center;
  background-size: contain;
}

.field.mobilenumber .country-code {
  left: 38px;
  font-size: 14px;
  color: #333;
}

/* .field.mobilenumber .control:has(.input-text.mage-error) .flag,
.field.mobilenumber .control:has(.input-text.mage-error) .country-code {
  top: 40%;
} */

.full-name{
  display: flex;
}

.field.mobilenumber .input-text {
  padding-left: 75px;
}

.field.field-name-firstname {
  padding: 0;
  padding-right: 5px;
}

.field.field-name-lastname {
  padding: 0;
  padding-left: 5px;
}

.block-title strong {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

.block-title strong::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f0f0f0 0%, #f9f9f9 100%);
  border-radius: 3px;
}

/* ========== FORM ELEMENTS ========== */
.customer-account-form .fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.customer-account-form .field {
  margin-bottom: 20px;
  position: relative;
}

.customer-account-form .label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.customer-account-form .control {
  position: relative;
}

.customer-account-form .input-text {
  width: 100%;
  height: 48px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 18px;
  transition: all 0.3s ease;
}

.customer-account-form .input-text:focus {
  /* border-color: #1979c3; */
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 121, 195, 0.1);
  outline: none;
}

/* ========== PASSWORD FIELD ==========
.password .control {
  display: flex;
  align-items: center;
} */

/* ========== BUTTONS ========== */
.actions-toolbar {
  margin-top: 30px;
}


.action.login.primary {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn {
  text-align: end;
  font-size: 16px;
  margin: 3% 0;
}


.action.remind {
  display: block;
  text-align: center;
  margin-top: 15px;
  /* color: #1979c3; */
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.action.remind:hover {
  /* color: #115b8d; */
  text-decoration: underline;
}

/* ========== SOCIAL LOGIN ========== */
.social-login {
  /* margin-top: 40px; */
  padding-top: 30px;
  /* border-top: 1px solid #eee; */
}

.social-login-title,
.new-customer-title {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
}

.social-login-title::before,
.social-login-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #eee;
}

.new-customer-title::before,
.new-customer-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: #eee;
}

.social-login-title::before,
.new-customer-title::before {
  left: 0;
}

.social-login-title::after,
.new-customer-title::after {
  right: 0;
}

.social-login-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-login-btn {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 15px;
}

.social-login-btn:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-login {
  background: #fff;
  border-color: #ddd;
  color: #333;
}

.google-login::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../images/google-logo.svg") no-repeat;
  background-size: 22px;
  margin-right: 10px;
}

.apple-login {
  background: #000;
  color: white;
}

.apple-login::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../images/apple-logo.svg") no-repeat;
  background-size: 20px;
  margin-right: 10px;
}

/* Messages styling */
/* .messages {
    margin-bottom: 20px;
}

.message {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.message.error {
    background-color: #f9d4d4;
    color: #e02b27;
    border: 1px solid #e02b27;
}

.message.success {
    background-color: #e5efe5;
    color: #006400;
    border: 1px solid #006400;
} */
/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
  :lang(ar) .customer-account-block .actions-toolbar .primary {
    float: unset;
  }

  :lang(ar) .customer-account-block .secondary-btn {
    text-align: center;
  }

  .customer-account-block {
    padding: 20px;
    margin: 20px auto;
    box-shadow: unset;
    border: unset;
  }

  .secondary-btn {
    text-align: center;
  }

  .social-login-buttons {
    flex-direction: column;
  }

  .social-login-title::before,
  .social-login-title::after {
    width: 25%;
  }

  .new-customer-title::before,
  .new-customer-title::after {
    width: 20%;
  }
}


/* ========== ANIMATIONS ========== */
/* @keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* .block-customer-login {
  animation: fadeIn 0.4s ease-out forwards;
} */

/* ========== ERROR STATES ========== */
.input-text._error {
  border-color: #e02b27;
  background-color: #fff9f9;
}

.mage-error {
  color: #e02b27;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}