/* From Uiverse.io by micaelgomestavares (adapted for responsiveness + brand color) */

:root {
  /* Brand primary: adjust here if needed */
  --brand-primary: #6f42c1;
  --brand-primary-hover: #5e35b1;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  overflow-y: auto;
}

/* لابتوب وشاشات كبيرة: هامش علوي وسفلي عشان الفورم ما يضغط ويبان كامل */
@media (min-width: 992px) {
  body {
    padding: 48px 24px;
    align-items: center;
    min-height: 100vh;
  }
}

@media (min-width: 1200px) {
  body {
    padding: 60px 24px;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  padding: 30px;
  width: min(450px, 92vw);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  flex-shrink: 0;
}

::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.form button {
  align-self: flex-end;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flex-column > label {
  color: #151717;
  font-weight: 600;
  font-size: 14px;
}

.inputForm {
  border: 1.5px solid #ecedec;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: 0.2s ease-in-out;
  background: #fff;
}

.inputForm i {
  color: #151717;
  opacity: 0.65;
  font-size: 18px;
}

.input {
  margin-left: 10px;
  border-radius: 10px;
  border: none;
  width: 85%;
  height: 100%;
  font-size: 14px;
  background: transparent;
}

.input:focus {
  outline: none;
}

.inputForm:focus-within {
  border: 1.5px solid var(--brand-primary);
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.flex-row > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flex-row > div > label {
  font-size: 14px;
  color: black;
  font-weight: 400;
}

.span {
  font-size: 14px;
  margin-left: 5px;
  color: var(--brand-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.span:hover {
  text-decoration: underline;
}

.button-submit {
  margin: 20px 0 10px 0;
  background-color: var(--brand-primary);
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  height: 50px;
  width: 100%;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.button-submit:hover {
  background-color: var(--brand-primary-hover);
}

.p {
  text-align: center;
  color: black;
  font-size: 14px;
  margin: 5px 0;
}

.btn {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  border: 1px solid #ededef;
  background-color: white;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  text-decoration: none;
  color: #151717;
}

.btn:hover {
  border: 1px solid var(--brand-primary);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px 0;
}

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

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.alert-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.invalid {
  border-color: #ef4444 !important;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.brand img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

/* Password show/hide toggle */
.inputForm-password {
  padding-right: 10px;
}

.inputForm-password .input {
  width: 1px;
  flex: 1;
  min-width: 0;
}

.password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--brand-primary);
}

.password-toggle i {
  font-size: 20px;
}

