/* ==========================================================================
   MAKAM OTO KILIF - AUTH & LOGIN CSS (SITE MATCH)
   ========================================================================== */

.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background-color: #FFFFFF;
  position: relative;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-card {
  max-width: 450px;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  padding: 44px 38px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #DF0513;
  border: 1px solid #DF0513;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(223, 5, 19, 0.28);
  transition: all 0.2s ease;
  overflow: hidden;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.auth-icon-circle svg {
  width: 24px;
  height: 24px;
  color: #000000;
  transition: color 0.2s ease;
}

.auth-icon-circle:hover svg {
  color: #DF0513;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 28px;
}

.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
}

.auth-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
  width: 100%;
}

.auth-input {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: #0F172A;
  background-color: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-input-wrap .auth-input {
  padding-right: 44px;
}

.auth-input::placeholder {
  color: #94A3B8;
}

.auth-input:focus {
  background-color: #FFFFFF;
  border-color: #DF0513;
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.1);
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.auth-password-toggle svg {
  width: 20px;
  height: 20px;
  color: #000000;
  transition: color 0.2s ease;
}

.auth-password-toggle:hover svg {
  color: #DF0513;
}

.auth-submit-btn {
  width: 100%;
  background: #DF0513;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(223, 5, 19, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-submit-btn:hover {
  background: #B70410;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(223, 5, 19, 0.35);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-back-home {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: center;
}

.auth-back-home svg {
  width: 16px;
  height: 16px;
  color: #000000;
  transition: transform 0.2s ease, color 0.2s ease;
}

.auth-back-home:hover {
  color: #DF0513;
}

.auth-back-home:hover svg {
  color: #DF0513;
  transform: translateX(-3px);
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
  margin-bottom: 18px;
  text-align: left;
}

.auth-alert.is-error {
  display: block;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.auth-alert.is-success {
  display: block;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

@media (max-width: 500px) {
  .auth-card {
    padding: 34px 22px;
    border-radius: 22px;
  }
}
