@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #ff6b35;
  --primary-light: #ff8c5f;
  --secondary: #1a936f;
  --light: #f9f7f3;
  --dark: #1c1c1e; /* لون نص iOS العميق */
  --ios-gray: #f2f2f7; /* لون الخلفية للحقول */
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

body {
  background-color: #ffffff; /* خلفية بيضاء نظيفة */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

.container.ios-style {
  width: 90%;
  max-width: 400px;
  padding: 40px 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border-radius: 20px;
}

/* قسم الشعار */
.brand-section {
  text-align: center;
  margin-bottom: 40px;
}

.brand-logo img {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.form-description {
  font-size: 14px;
  color: #8e8e93;
  margin-top: 5px;
}

/* تجميع الحقول بنمط iOS Stack */
.ios-input-group {
  background: var(--ios-gray);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  
}

.form-group {
  position: relative;
  border-bottom: 1px solid #e5e5ea;
}

.form-group:last-child {
  border-bottom: none;
}

.form-input {
  width: 100%;
  padding: 18px 15px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--dark);
  outline: none;
}

.form-input::placeholder {
  color: #aeaeb2;
}

/* أيقونة العين */
.password-group {
  display: flex;
  align-items: center;
}

.toggle-password {
  position: absolute;
  right: 15px;
  color: #aeaeb2;
  cursor: pointer;
  font-size: 14px;
}

/* الروابط والخيارات */
.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 5px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3a3a3c;
}

.form-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* زر iOS Apple Style */
.submit-btn.ios-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn.ios-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.footer-link {
  text-align: center;
  margin-top: 25px;
}

.footer-link a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

/* رسائل التنبيه */
.message {
  padding: 12px;
  background: #fff2f0;
  border-radius: 10px;
  color: #ff3b30;
  font-size: 13px;
  text-align: center;
  margin-bottom: 15px;
}
.verification-group {
    position: relative;
    display: flex;
    align-items: center;
}

.verification-icon {
    position: absolute;
    right: 15px;
    color: var(--secondary); /* لون أخضر ليدل على الأمان */
    font-size: 14px;
    opacity: 0.7;
}

/* تعديل بسيط لضمان أن كود التحقق لا يظهر إلا عند الحاجة عبر JS إذا أردت */
.verification-group {
    border-top: 1px solid #e5e5ea;
}
/* --- [ 5. الأزرار والروابط ] --- */
.form-footer {
  text-align: right;
  margin-bottom: 25px;
}

.ios-link {
  color: #8e8e93;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}

.ios-link:hover {
  color: var(--primary);
}