* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #0b1320 url('crane-bg.png') no-repeat center center;
  background-size: cover;
}

/* الأشرطة الصفراء المائلة بالزوايا */
.stripe-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 135px;
  height: 11px;
  background: #f5a61d;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: 10;
}

.stripe-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 155px;
  height: 16px;
  background: #f5a61d;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
}

.page-layout {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end; /* وضع الفورم في أقصى اليمين */
  align-items: flex-start;
  padding: 35px 55px;
  position: relative;
  z-index: 2;
}

.brand-spacer {
  flex: 1; /* يترك مساحة كافية لتظهر كتابة الخلفية الحقيقية على الشمال */
}

/* بطاقة تسجيل الدخول الشفافة الكحلية */
.login-wrapper {
  margin-top: 15px;
}

.login-card {
  width: 310px;
  background: rgba(14, 25, 43, 0.88);
  border: 1px solid rgba(82, 108, 142, 0.4);
  border-radius: 9px;
  padding: 22px 20px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
}


}

form {
  width: 100%;
}

.field-wrap {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.field-wrap input {
  width: 100%;
  background: rgba(8, 16, 29, 0.7);
  border: 1px solid rgba(65, 87, 115, 0.5);
  border-radius: 5px;
  padding: 10px 42px 10px 35px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.field-wrap input::placeholder {
  color: #5d718b;
}

.field-wrap input:focus {
  border-color: #f5a61d;
}

.btn-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #72869e;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-toggle:hover {
  color: #f5a61d;
}

.btn-login {
  width: 100%;
  background: #f5a61d;
  border: none;
  border-radius: 5px;
  padding: 10px 14px;
  color: #0c1420;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  transition: background 0.2s;
}

.btn-login:hover {
  background: #df9414;
}

.error-text {
  color: #ef4444;
  font-size: 0.74rem;
  text-align: center;
  margin-top: 10px;
  min-height: 16px;
  line-height: 1.3;
}

@media (max-width: 820px) {
  body {
    overflow-y: auto;
  }
  .page-layout {
    justify-content: center;
    padding: 30px 20px;
  }
}