/* ریست و استایل‌های پایه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

:root {
  --primary-color: #a3c293;
  --secondary-color: #8aa87e;
  --accent-color: #4d774e;
  --text-dark: #2f4f4f;
  --text-light: #ffffff;
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-border: #c8e6c9;
  --input-focus: #81c784;
  --transition: all 0.3s ease;
}

body {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  direction: rtl;
}

/* حالت پیش‌فرض موبایل: تصویر بالا و فرم زیر */
.container-wrapper {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 1200px;
  background: var(--input-bg);
  border-radius: 20px;
  overflow: hidden;
}

.image-section {
  width: 100%;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup-container {
  width: 100%;
  padding: 3rem 2rem;
}

.header-section {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  width: 120px;
  margin-bottom: 1rem;
}

.title {
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.input-field {
  position: relative;
  margin-bottom: 1.5rem;
}

/* تنظیم جهت و پدینگ با آیکون در سمت چپ */
.input-field input {
  width: 100%;
  padding: 14px 15px 14px 40px; /* فضای اضافی از سمت چپ برای آیکون */
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  font-size: 1rem;
  color: var(--text-dark);
  text-align: right;
  transition: var(--transition);
}

.input-field input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 5px var(--input-focus);
  outline: none;
}

.input-field input::placeholder {
  color: #aaa;
  text-align: right;
}

/* آیکون در سمت چپ */
.icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 1.2rem;
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent-color);
  color: var(--text-light);
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #3a5c3a;
}

.terms-section {
  margin-top: 1rem;
  text-align: center;
}

.terms-section input {
  margin-left: 5px;
}

.login-link {
  text-align: center;
  margin-top: 1rem;
}

/* استایل مخصوص فیلد تاریخ تولد */
.persian-date-input {
  cursor: pointer;
}

/* حالت دسکتاپ/تبلت: جای فرم و تصویر پس زمینه عوض شود */
@media (min-width: 769px) {
  .container-wrapper {
    flex-direction: row;
  }
  /* فرم در سمت چپ */
  .signup-container {
    order: 1;
    width: 50%;
    padding: 3rem 2rem;
  }
  /* تصویر در سمت راست */
  .image-section {
    order: 2;
    width: 50%;
  }
}
    .remember-me {
        font-size: 12px;
    }
/* استایل مخصوص فیلد آپلود فایل */
.file-upload-field {
    position: relative;
    margin-bottom: 1.5rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 8px 15px 8px 40px;
    background: var(--input-bg);
    min-height: 48px;
}

.file-upload-field .icon {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.file-input-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.file-text {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.browse-btn {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.browse-btn:hover {
    background: #3a5c3a;
}

/* در حالت موبایل */
@media (max-width: 768px) {
    .file-upload-field {
        padding-left: 35px;
    }

    .file-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .browse-btn {
        margin-top: 5px;
    }
}




.terms-section {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    text-align: center;
}