@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-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;
  font-family: 'Poppins', sans-serif;
}

/* Container */
.container.ios-style {
  width: 90%;
  max-width: 400px;
  padding: 20px 40px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border-radius: 20px;
}

/* Brand Section */
.brand-section {
  text-align: center;
  margin-bottom: 30px;
}
.brand-logo img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}
.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.form-description {
  font-size: 14px;
  color: #8e8e93;
}

/* Logo Upload */
.logo-upload-ios {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}
.logo-preview-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  background: var(--ios-gray);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e5e5ea;
}
.logo-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* Input Group Stack (Apple Style) */
.ios-input-group {
  background: var(--ios-gray);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.form-group {
  position: relative;
  border-bottom: 0.5px solid #d1d1d6;
}
.form-group:last-child {
  border-bottom: none;
}
.form-input {
  width: 100%;
  padding: 16px 45px 16px 15px; 
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
  color: var(--dark);
  text-align: start;
}

[dir="rtl"] .form-input {
  padding: 16px 15px 16px 45px;
}

.password-group {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-password {
  position: absolute;
  inset-inline-end: 15px; 
  color: #aeaeb2;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
}

/* Options & Buttons */
.ios-options-section {
  margin-bottom: 25px;
  padding: 0 5px;
}
.checkbox-group.ios-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.submit-btn.ios-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.submit-btn.ios-btn:active {
  transform: scale(0.96);
}

/* Popups & Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}
.message-box.ios-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  border-radius: 14px;
  z-index: 1001;
  display: none;
}
.ios-alert-content { padding: 20px; text-align: center; }
.ios-alert-actions { border-top: 0.5px solid #d1d1d6; padding: 12px; text-align: center; }
.ios-link-bold { color: var(--primary); text-decoration: none; font-weight: 700; }