/* استایل‌های صفحه لاگین محاسب 24 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --light-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --error-color: #e74c3c;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  text-align: right;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.login-container {
    display: flex;
    height: 90vh;
    max-width: 1200px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.login-form-container {
    width: 100%;
    max-width: 500px;
    background-color: var(--light-color);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-banner {
    display: none;
}

.login-logo {
    width: 150px;
    margin: 0 auto 2rem;
    display: block;
}

.login-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
}

.login-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.login-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background-color: var(--light-color);
    padding: 0 0.5rem;
    transition: all 0.3s;
    pointer-events: none;
    color: #777;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container input {
    margin-left: 0.5rem;
}

.error-message {
    color: var(--error-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: rgba(53, 87, 123, 0.6);
    cursor: not-allowed;
}

.links-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 400;
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.3rem;
}

.link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.link i {
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

#register-link {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.7rem;
  width: 100%;
  text-align: center;
}

#forget-link {
  font-size: 0.85rem;
  color: #777;
}

.banner {
    flex: 1;
    background-image: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8)), url('../dist/img/accounting-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    color: var(--light-color);
}

.logo-container {
    text-align: center;
    margin-top: 2rem;
}

.logo-container img {
    width: 184px;
    margin-bottom: 1rem;
}

.info-help {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    max-width: 80%;
    border-right: 3px solid var(--accent-color);
}

.info-help img {
    width: 24px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.info-help a {
    color: var(--light-color);
    text-decoration: none;
}


.copyright {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem;
  margin-top: auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 100%;
}

.copyright a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.copyright a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* نمایش کپی‌رایت در موبایل */
@media (max-width: 768px) {
  .login-banner {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 2rem;
  }
  
  .login-banner img {
      width: 100px;
      margin-bottom: 1rem;
  }
  
  .mobile-copyright {
      display: block;
      text-align: center;
      font-size: 0.75rem;
      color: var(--text-color);
      opacity: 0.7;
      margin-top: 2rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-color);
  }
  
  .mobile-copyright a {
      color: var(--secondary-color);
      text-decoration: none;
  }
}


/* Responsive styles */
@media (max-width: 768px) {
    .login-container {
        width: 95%;
        height: auto;
        min-height: 80vh;
    }
    
    .login-form-container {
        max-width: 100%;
        height: 100%;
    }
    
    .banner {
        display: none;
    }
    
} 
