/* style.css */
:root {
    --primary-color: #28a745;
    --primary-dark: #218838;
    --secondary-color: #6c757d;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    color: var(--dark-color);
  }
  
  .install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 18dvh 12px;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 1000;
  }

  .installing {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 4dvh 12px;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.5s ease;
    opacity: 1;

  }
  
  .install-banner button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
  }
  
  #pwa-dismiss-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    color: white;
    font-size: 18px;
    padding: 4px;
  }
  
  .auth-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
  }
  
  .auth-logo {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .auth-logo img {
    height: 60px;
    width: auto;
  }
  
  .auth-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
  }
  
  .auth-subtitle {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--secondary-color);
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
  }
  
  .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .form-check-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
  }
  
  .btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 5px;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
    cursor: pointer;
    width: 100%;
  }
  a{
    text-decoration: none;
  }
  
  #ios-install-banner {
    /* display: none; */
    position: fixed;
    bottom: 20px;
    left: 10px;
    right: 10px;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-family: sans-serif;
    z-index: 1000;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }

  #ios-install-banner button {
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
  }

  #ios-install-banner img {
    vertical-align: middle;
    height: 18px;
    margin: 0 4px;
  }

  .btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
  }
  
  .btn-link {
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: center;
    width: auto;
  }
  
  .btn-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
  }
  
  .auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--secondary-color);
  }
  
  .auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  .auth-footer a:hover {
    text-decoration: underline;
  }
  
  .alert {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
  }
  
  .alert-success {
    color: #155724;
    background-color: var(--success-bg);
    border-color: var(--success-border);
  }
  
  .alert-danger {
    color: #721c24;
    background-color: var(--error-bg);
    border-color: var(--error-border);
  }
  
  .error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 5px;
  }
  
  /* RTL Support */
  .rtl {
    direction: rtl;
    text-align: right;
  }
  
  .rtl .form-check-input {
    margin-right: 0;
    margin-left: 8px;
  }
  
  /* Language selector */
  .language-selector {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .language-selector button {
    background: none;
    border: none;
    padding: 5px;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  
  .language-selector button.active {
    opacity: 1;
    font-weight: bold;
    text-decoration: underline;
  }
  
  .language-selector button:hover {
    opacity: 1;
  }
  
  /* Password strength meter */
  .password-strength-meter {
    height: 5px;
    background-color: #eee;
    margin-top: 8px;
    border-radius: 3px;
    overflow: hidden;
  }
  
  .password-strength-meter-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
  }
  
  .password-strength-text {
    font-size: 12px;
    margin-top: 5px;
  }
  
  .strength-weak .password-strength-meter-bar {
    width: 25%;
    background-color: #dc3545;
  }
  
  .strength-fair .password-strength-meter-bar {
    width: 50%;
    background-color: #ffc107;
  }
  
  .strength-good .password-strength-meter-bar {
    width: 75%;
    background-color: #17a2b8;
  }
  
  .strength-strong .password-strength-meter-bar {
    width: 100%;
    background-color: #28a745;
  }