/* چیدمان داخلی صفحه ورود — فریم در app.css (.gr-frame) */

.gr-auth-layout {
  width: 100%;
  height: 100%;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.gr-auth-layout .gr-icon-btn {
  align-self: flex-end;
  margin-bottom: 20px;
}

.gr-login-step {
  width: 100%;
}

.gr-login-step--phone {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gr-login-step--phone .gr-field {
  margin-top: auto;
  margin-bottom: auto;
}

.gr-login-step--phone .gr-footer-actions {
  margin-top: 0;
}

.gr-login-step--otp {
  margin-top: auto;
  margin-bottom: auto;
}

.gr-login-phone-display {
  justify-content: center;
  margin-bottom: 8px;
}

.gr-login-otp-text {
  text-align: center;
  color: #475569;
  font-size: 12px;
  margin-bottom: 16px;
}

.gr-login-step--otp .gr-label {
  text-align: right;
}

.gr-login-otp-row {
  gap: 8px;
  justify-content: center;
  flex-direction: row;
}

.gr-login-otp-row .gr-otp-box {
  width: 42px;
  height: 40px;
}

.gr-login-otp-actions {
  margin-top: 16px;
  flex-direction: row-reverse;
}

.gr-auth-message {
  margin-top: 8px;
  font-size: 11px;
  color: var(--gr-color-success);
  text-align: center;
}

.gr-auth-message--error {
  color: var(--gr-color-danger);
}

.gr-login-edit-phone {
  border: none;
  background: none;
  margin: 14px auto 0;
  display: block;
  font-family: inherit;
  cursor: pointer;
}
