/* בסיס */
body {
    background: linear-gradient(135deg, #eff1f6 0%, #f8f9fa 100%);
    font-family: 'Alef', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
  }
  
  /* רקעים */
  .bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
  }
  
  .bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 176, 151, 0.1), rgba(68, 227, 172, 0.05));
    animation: float 6s ease-in-out infinite;
  }
  
  .bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
  }
  
  .bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 85%;
    animation-delay: 2s;
  }
  
  .bg-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 85%;
    left: 15%;
    animation-delay: 4s;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    50% {
      transform: translateY(-30px) rotate(180deg);
    }
  }
  
  /* מבנה כללי */
  .page-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    direction: ltr;
  }
  
  .main-content {
    flex: 1;
    padding: 30px;
    direction: rtl;
    margin-right: 60px;
    width: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .register-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    position: relative;
    animation: slideInUp 0.8s ease-out;
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .register-header {
    background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .register-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.05) 20px,
      rgba(255, 255, 255, 0.05) 40px
    );
    animation: moveStripes 20s linear infinite;
  }
  
  @keyframes moveStripes {
    0% { transform: translateX(-100px) translateY(-100px); }
    100% { transform: translateX(100px) translateY(100px); }
  }
  
  .register-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
  }
  
  .register-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .register-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
  }
  
  .progress-container {
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  }
  
  .step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
  }
  
  .step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
  }
  
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
  }
  
  .step.active .step-number {
    background: linear-gradient(135deg, #2ebf91, #2ebf91);
    color: #011939;
    transform: scale(1.1);
  }
  
  .step.completed .step-number {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
  }
  
  .step-label {
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    font-size: 0.9rem;
  }
  
  .step.active .step-label {
    color: #011939;
  }
  
  .progress-bar-custom {
    height: 8px;
    background: #2ebf91;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
  }
  
  .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2ebf91, #2ebf91);
    border-radius: 4px;
    transition: width 0.5s ease;
  }
  
  .register-body {
    padding: 40px 30px;
  }
  
  .form-section {
    display: none;
    animation: fadeInRight 0.5s ease-out;
  }
  
  .form-section.active {
    display: block;
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #011939;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .section-title i {
    color: #2ebf91;
    font-size: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 25px;
    position: relative;
  }
  
  .form-label {
    font-weight: 600;
    color: #1b8966;
    margin-bottom: 8px;
    display: block;
  }
  .progress-bar {
    background: #1b8966;
    height: 8px;
    border-radius: 4px;
    transition: width 0.4s ease;
  }
  
  .required-field::after {
    content: " *";
    color: #dc3545;
  }
  
  .form-control {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
  }
  
  .form-control:focus {
    outline: none;
    border-color: #1b8966;
    box-shadow: 0 0 0 3px rgba(244, 197, 14, 0.1);
    background: white;
  }
  
  .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
  }
  
  .form-control.with-icon {
    padding-left: 50px;
  }
  
  .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
  }
  
  .navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
  }
  
  .nav-btn {
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .btn-next {
    background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
    color: white;
    box-shadow: 0 4px 15px #2ebf91(244, 197, 14, 0.3);
  }
  
  .btn-next:hover {
    background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #2ebf91(244, 197, 14, 0.5);
  }
  
  .btn-prev {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
  }
  
  .btn-prev:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
  }
  
  .btn-submit {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }
  
  .btn-submit:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
  }
  
  .login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
  }
  
  .login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .login-link a:hover {
    color: #5a6fd8;
    text-decoration: underline;
  }
  
  .loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(1, 25, 57, 0.3);
    border-radius: 50%;
    border-top-color: #011939;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  @media (max-width: 768px) {
    .main-content {
      margin-right: 50px;
      width: calc(100% - 50px);
      padding: 15px;
    }
  
    .register-container {
      max-width: 100%;
      margin: 10px;
    }
  
    .register-header {
      padding: 30px 20px;
    }
  
    .register-body {
      padding: 30px 20px;
    }
  
    .register-title {
      font-size: 1.8rem;
    }
  
    .progress-container {
      padding: 20px 15px 15px;
    }
  
    .step-indicator {
      flex-direction: column;
      gap: 20px;
    }
  
    .step-indicator::before {
      display: none;
    }
  
    .navigation-buttons {
      flex-direction: column;
    }
  }
  
  body.dark-mode {
    background: linear-gradient(135deg, #1e2e42 0%, #0b1d34 100%);
  }
  
  body.dark-mode .register-container {
    background: #1e2e42;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
  
  body.dark-mode .form-control {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  body.dark-mode .form-control:focus {
    background: #2d3748;
    border-color: #2ebf91;
  }
  
  body.dark-mode .form-label,
  body.dark-mode .section-title {
    color: #e2e8f0;
  }
  
  body.dark-mode .progress-container {
    background: linear-gradient(135deg, #2ebf91);
  }
  