body.login {
  background: #ffffff;
  font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;

  #login {
    width: 100%;
    max-width: 400px;
    padding: 0;
    margin: 0;
  }

  form {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin: 0;
  }
  #loginform {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  }
  h1 {
    text-align: center;
    background: white;
    margin-top: 0;

    a {
      background-image: url('../images/logo.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      width: 200px;
      height: 80px;
      display: block;
      text-indent: -9999px;
      outline: none;
      box-shadow: none;
      text-decoration: none;
      margin: 0 auto;
    }
  }

  label {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
    text-align: right;
  }

  input[type='text'],
  input[type='password'] {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #111827;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    text-align: right;
    direction: rtl;
    font-family: 'Assistant', sans-serif;
  }

  input[type='text']:focus,
  input[type='password']:focus {
    background: white;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .forgetmenot {
    text-align: right;
  }

  .forgetmenot input[type='checkbox'] {
    margin-left: 8px;
    margin-right: 0;
  }

  .forgetmenot label {
    color: #6b7280;
    font-size: 0.875rem;
    display: inline;
    margin: 0;
  }

  .submit {
    text-align: center;
    margin-top: 1.5rem;

    input[type='submit'] {
      background-color: #2563eb;
    }
  }

  .wp-core-ui .button-primary {
    background: #3b82f6;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    width: 100%;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
    box-shadow: none;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
  }

  .wp-core-ui .button-primary:hover,
  .wp-core-ui .button-primary:focus {
    background: #2563eb;
    box-shadow: none;
    transform: none;
  }

  .wp-core-ui .button-primary:active {
    background: #1d4ed8;
  }

  #nav {
    text-align: center;
    margin-top: 1.5rem;
  }

  #nav a,
  #backtoblog a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease-in-out;
    font-family: 'Assistant', sans-serif;
  }

  #nav a:hover,
  #backtoblog a:hover {
    color: #374151;
  }

  #backtoblog {
    text-align: center;
    margin-top: 1rem;
  }

  .message,
  .error {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem 0;
    border-left: none;
    border-right: 4px solid;
    font-family: 'Assistant', sans-serif;
  }

  .message {
    background: #f0f9ff;
    border-right-color: #3b82f6;
    color: #1e40af;
  }

  .error {
    background: #fef2f2;
    border-right-color: #ef4444;
    color: #dc2626;
  }

  /* Remove WordPress default styling */
  #login_error,
  .message {
    border: none;
    box-shadow: unset;
    margin: 0;
  }
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
  body.login {
    padding: 10px;
  }

  .login #login {
    max-width: 100%;
  }

  .login form,
  .login h1 {
    padding: 1.5rem;
  }

  .login h1 a {
    width: 150px;
    height: 60px;
  }
}
