@import url(./fonts.css);

:root {
    --primary:       #ab52d8;
    --primary-dark:  #7a339f;
    --bg1:           #1a0324;
    --bg2:           #3e0057;
    --panel-bg:      #1a0324; /* تم تیره برای فرم */
    --text-dark:     #f5f5f5;
    --card-bg:       #ffffff;
    --error:         #e74c3c;
  }
  
  /* ریست */
  * { box-sizing:border-box; margin:0; padding:0; }
  body {
    font-family: 'IRANSansWeb', sans-serif!important;
    background: linear-gradient(135deg, var(--bg1), var(--bg2)) no-repeat fixed;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  input::placeholder{
    font-family: 'IRANSansWeb', sans-serif!important;
  }
  
  /* کارت میانی */
  .login-card {
    width:100%;
    max-width:900px;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 12px 40px rgba(0,0,0,0.3);
    background: var(--card-bg);
  }
  
  /* دو ستون */
  .login-content {
    display:flex;
    min-height:600px;
  }
  .form-panel, .image-panel {
    flex:1;
  }
  .form-panel {
    padding: 60px 40px;
    background: var(--panel-bg);
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .image-panel {
    position:relative;
    background: var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .login-container{
    width: 800px;
  }
  
  /* عکس تمام عرض + نسبت قابل تنظیم */
  .image-box {
    width:100%;
    height: 100%;
    max-width:none;
    padding-top:70%; /* تنظیم نسبت: عدد کمتر = عریض‌تر، عدد بیشتر = کشیده‌تر */
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
    box-shadow:0 8px 24px rgba(0,0,0,0.4);
    animation: zoomPan 20s ease-in-out infinite;
  }

  .btn-link-border{
    color: #ab52d8;
  }
  
  /* دایره‌های دکوری */
  .image-panel::before, .image-panel::after {
    content:'';
    position:absolute;
    border-radius:50%;
    background: rgba(255,255,255,0.15);
  }
  .image-panel::before {
    width:120px; height:120px;
    top:20px; left:30px;
  }
  .image-panel::after {
    width:80px; height:80px;
    bottom:30px; right:40px;
  }
  
  /* لوگو و تیتر */
  .logo-wrap {
    text-align:center;
    margin-bottom:30px;
  }
  .logo-wrap img {
    width:120px; height:120px;
    background: var(--primary);
    padding:10px;
    border-radius:50%;
  }
  .logo-wrap h2 {
    margin-top:12px;
    font-size:26px;
    color: var(--text-dark);
  }
  .logo-wrap h2 span {
    color: var(--primary);
  }
  
  /* فیلدها */
  .form-field {
    position:relative;
    margin-bottom:24px;
  }
  .form-field i {
    position:absolute;
    top:50%; left:12px;
    transform:translateY(-50%);
    font-size:18px; color: var(--primary);
  }
  .form-field input {
    width:100%;
    padding:12px 12px 12px 44px;
    border:1px solid rgba(255,255,255,0.3);
    border-radius:8px;
    font-size:15px;
    color: var(--text-dark);
    transition:0.3s;
    color: #000000;
  }
  .form-field input:focus {
    border-color: var(--primary);
    outline:none;
  }
  .is-invalid {
    border-color: var(--error)!important;
  }
  .alert-error {
    color: var(--error);
    font-size:13px;
    margin-top:6px;
  }
  .alert-success {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding:10px;
    border-radius:6px;
    text-align:center;
    margin-bottom:20px;
  }
  
  /* دکمه */
  .btn-login {
    font-family: 'IRANSansWeb', sans-serif!important;
    width:100%;
    padding:14px 0;
    background: var(--primary);
    color:#fff;
    font-size:16px;
    font-weight:bold;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition: background 0.3s;
  }
  .btn-login:hover {
    background: var(--primary-dark);
  }
  
  /* لینک‌های پایین فرم */
  .bottom-links {
    text-align:center;
    margin-top:20px;
    font-size:14px;
  }
  .bottom-links a {
    color: #fff;
    text-decoration:none;
  }
  .bottom-links span {
    color: rgba(255,255,255,0.5);
  }
  
  /* انیمیشن زوم عکس */
  @keyframes zoomPan {
    0%,100% { transform: scale(1) }
    50%     { transform: scale(1.05) }
  }
  
  /* در حالت اپ فقط فرم */
  body.app-style .image-panel {
    display:none;
  }
  body.app-style .form-panel {
    flex:1 1 100%;
  }
  
  /* ریسپانسیو */
  @media (max-width:768px) {
    .login-content {
      flex-direction:column;
    }
    .form-panel {
      padding:40px 20px;
    }
    .image-panel {
      height:200px;
    }
    .image-box {
      padding-top:60%;
    }
  }
  