/* ============================================
   صفحة تسجيل الدخول - view/auth
   مطابق لـ lib/view/auth/sgin_in.dart + widgets
   ============================================ */

.login-page {
  background-color: var(--background-color);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0);
}

.login-header {
  padding: 10px 10px 0;
}

.login-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-logo {
  width: 81px;
  height: 43px;
  object-fit: contain;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 24px 0 0;
  text-align: center;
}

.login-spacer {
  flex-shrink: 0;
}

.login-spacer--top { height: 40px; }
.login-spacer--btn { height: 30px; }
.login-spacer--mid { height: 32px; }

.login-form-wrap {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 601px) {
  .login-form-wrap {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

.login-form {
  width: 100%;
}

.info-field {
  margin-bottom: 0;
}

.info-field__label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.info-field__input-wrap {
  position: relative;
  margin-top: 8px;
  margin-bottom: 20px;
}

.info-field--password .info-field__input-wrap {
  margin-bottom: 8px;
}

.info-field__input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  font-size: 14px;
  font-family: var(--font-arabic);
  color: var(--text-primary);
  background-color: #f1f0ef;
  border: none;
  border-radius: 16px;
  outline: none;
  direction: rtl;
}

.info-field__input::placeholder {
  color: var(--text-hint);
}

.info-field__input:focus {
  box-shadow: 0 0 0 2px var(--primary-color-2);
}

.info-field__toggle-password {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-field__toggle-password:hover {
  color: #555;
}

.info-field__toggle-password .icon-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-field__toggle-password .icon-eye svg {
  display: block;
}

.info-field__link {
  display: block;
  font-size: 12px;
  color: var(--text-link);
  text-align: right;
  margin-top: 8px;
  text-decoration: none;
}

.info-field__link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-arabic);
  border: none;
  border-radius: 19px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(to top, var(--primary-color), var(--primary-color-2));
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  opacity: 0.95;
}

.btn--outline {
  background: transparent;
  color: var(--primary-color);
  font-weight: 700;
  border: 1.5px solid rgba(143, 174, 166, 0.5);
}

.btn--outline:hover:not(:disabled) {
  background: rgba(69, 118, 103, 0.08);
}

.btn--full {
  width: 100%;
}

.btn__icon-left {
  flex-shrink: 0;
}

.login-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}

@media (min-width: 601px) {
  .login-bottom {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

.login-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 400;
}

.login-link__accent {
  color: var(--primary-color);
  font-weight: 800;
}

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

.login-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 24px 0;
  gap: 16px;
}

.login-divider__line {
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}

.login-divider__text {
  font-size: 14px;
  color: #757575;
}

.login-bottom .btn--outline {
  margin-top: 0;
  max-width: 100%;
}
