@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&display=swap');

:root{
    --white: #f2f2f2;
    --black: #000;
    --background: #FBFDFB;
    --subtitle-color: rgba(0, 0, 0, 0.54);
    --sec-dark: #1e1d1d;
    --primary: #185619;
    --secondary: #185619;
    --light-category: gainsboro ;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --text-gray: #F9FAFB;
    --shadow: 8px 8px 0px 0px #000;
    --reverse-shadow: -8px -8px 0px 0px #000000d3;
    --slight-shadow : 2px 2px 1px 0px #000;
    --slight-shadow-faint : 2px 2px 1px 0px #00000022;
    --secondary: #bbf7d0;
    --light-green-background: #f0fdf4;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Inter", sans-serif;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: var(--light-category);
}

::-webkit-scrollbar-track {
  background: var(--light-category);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
  border: 2px solid var(--light-category);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

  .register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    padding: 16px 0 16px;
  }

  .register-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
  }

  .register-card {
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
  }

  .image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .image-content {
    text-align: center;
    color: white;
    padding: 1.5rem;
  }

  .image-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .image-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
  }

  .form-section {
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--slight-shadow);
  }

  .form-header {
    margin-bottom: 1.5rem;
  }

  .form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sec-dark);
    margin-bottom: 0.5rem;
  }

  .form-subtitle {
    font-size: 15px;
    color: var(--subtitle-color);
    font-weight: 500;
  }

  .role-indicator {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: var(--sec-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #dcfce7;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    display: block;
    font-weight: 500;
    color: var(--sec-dark);
    margin-bottom: 0.4rem;
    font-size: 14px;
  }

  .form-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: var(--sec-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafafa;
  }

  .form-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
  }

  .form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
  }

  .error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }

  /* Password field styling */
  .password-field {
    position: relative;
  }

  .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
  }

  .password-toggle:hover {
    color: var(--secondary);
  }

  .password-toggle svg {
    width: 1rem;
    height: 1rem;
  }

  /* Email field styling */
  .email-field {
    position: relative;
  }

  .email-status {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .email-status.checking {
    color: #6b7280;
  }

  .email-status.available {
    color: green;
  }

  .email-status.unavailable {
    color: #ef4444;
  }

  .email-status svg {
    width: 1rem;
    height: 1rem;
  }

  .email-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    transition: all 0.2s;
  }

  .email-feedback.available {
    color: var(--secondary);
  }

  .email-feedback.unavailable {
    color: #ef4444;
  }

  .email-feedback.checking {
    color: #6b7280;
  }

  .username-info {
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid var(--secondary);
    background: var(--light-green-background);

  }

  .register-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
  }

  .register-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
  }

  .register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  .terms-section {
    margin: 1.25rem 0;
  }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .checkbox-input {
    margin-top: 0.2rem;
    width: 0.9rem;
    height: 0.9rem;
    accent-color: var(--secondary);
  }

  .checkbox-label {
    font-size: 0.85rem;
    color: var(--sec-dark);
    line-height: 1.3;

    & > a {
      color: rgb(18, 173, 18);
    }
  }


  .checkbox-label a:hover {
    text-decoration: underline;
  }

  .signin-link {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    color: var(--subtitle-color);
    font-size: 0.85rem;
  }

  .signin-link a {
    color: var(--sec-dark);
    text-decoration: none;
    font-weight: 600;
  }

  .signin-link a:hover {
    text-decoration: underline;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    color: var(--sec-dark);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .back-link:hover {
    opacity: 0.7;
  }

  @media (max-width: 768px) {
    .register-card {
      grid-template-columns: 1fr;
    }

    .image-section {
      min-height: 180px;
    }

    .form-section {
      padding: 1.5rem;
    }

    .image-title {
      font-size: 1.5rem;
    }
  }