/* =========================================================
   AluminiumGlass
   Public User Account / Authentication
   Login + Register
   ========================================================= */

.account-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.account-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.back-home {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   Main
   ========================================================= */

.account-main {
  min-height: calc(100vh - 150px);
  padding: 60px 20px;
  background: #f7f8fa;
}

.auth-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
}


/* =========================================================
   Heading
   ========================================================= */

.auth-heading {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 25px;
}

.auth-heading h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.auth-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.5;
}


/* =========================================================
   Messages
   ========================================================= */

.auth-message {
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-message.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}


/* =========================================================
   Form
   ========================================================= */

.form-group {
  margin-bottom: 19px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #ffffff;
  font-size: 15px;
  outline: none;
  transition:
    border-color .2s,
    box-shadow .2s;
}

.form-group input:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, .12);
}

.form-group input.input-error {
  border-color: #dc2626;
}

.form-help {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}


/* =========================================================
   Password
   ========================================================= */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 75px;
}

.password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   Terms
   ========================================================= */

.terms-option {
  margin: 8px 0 22px;
}

.terms-option label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.terms-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.terms-option a {
  font-weight: 700;
  text-decoration: none;
}


/* =========================================================
   Submit
   ========================================================= */

.auth-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.auth-submit:hover {
  opacity: .92;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* =========================================================
   Divider
   ========================================================= */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 27px 0;
  color: #9ca3af;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}


/* =========================================================
   Login/Register
   ========================================================= */

.auth-register {
  text-align: center;
  margin-bottom: 24px;
}

.auth-register p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 14px;
}

.auth-register a {
  font-weight: 800;
  text-decoration: none;
}


/* =========================================================
   Business
   ========================================================= */

.business-login {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.business-login p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
}

.business-login a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}


/* =========================================================
   Footer
   ========================================================= */

.account-footer {
  padding: 25px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 13px;
}

.account-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

  .account-main {
    padding: 30px 15px;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 14px;
  }

  .auth-heading h1 {
    font-size: 25px;
  }

  .account-header-inner {
    min-height: 60px;
  }

  .back-home {
    font-size: 13px;
  }

}