:root {
  --main-teal: #4BA3DB;
  --bg-white: #ffffff;
  --text-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  direction: rtl;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app {
  width: 100%;
  max-width: 400px;
  height: 100%;
  max-height: 850px;
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
}

.top-brand {
  flex: 0 0 18%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: visible;
}

.brand-logo {
  height: 130%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transform: scale(1.1);
}

.login-card {
  flex: 1;
  background-color: var(--main-teal);
  border-radius: 40px 40px 0 0;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  z-index: 10;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.eye-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #929292;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}


.form-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: none;
  font-size: 0.9rem;
  text-align: right;
  background-color: var(--bg-white);
}

.eye-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #bbb;
}

.btn-submit {
  background-color: var(--bg-white);
  color: var(--main-teal);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}

.footer-area {
  margin-top: auto;
  padding-bottom: 10px;
}

.signup-text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-white);
}

.signup-text a {
  color: var(--text-white);
  font-weight: bold;
  text-decoration: underline;
}

.input-group .form-input {
  padding-left: 45px;
}

.field-error {
  color: #FFFFFF;
  font-size: 0.75rem;
  margin-right: 10px;
  display: none;
  text-align: right;
}

.input-error {
  border: 1.5px solid #ff4d4d !important;
  animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}