:root {
  --primary-green: #0e7b61;
  --primary-green-hover: #0a5d49;
  --light-gray: #f8f9fa;
  --agrimus-green-dark: #0a6449;
            --agrimus-green-light: #10a37a;
            --agrimus-yellow: #febc30;
            --agrimus-yellow-light:#fed23b;
            --agrimus-yellow-dark: #c1a028;
            --border-color: #e0e0e0;
            /* Variables supplémentaires */
            --agrimus-green-alt: #28a745;
            --agrimus-green-dark-alt: #218838;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
        url('../fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
        url('../fonts/OpenSans-Regular.woff') format('woff');
    font-weight: 40;
    font-style: normal;
    font-display: swap;
}




body {
font-family: "Open Sans";
  background-color: var(--light-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Style pour le modal d'attente */
.pending-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

#pendingAccountModal .card {
    border-left: 4px solid #0d6efd;
}

#pendingAccountModal .card:last-child {
    border-left-color: #ffc107;
}

#pendingAccountModal ul {
    padding-left: 1.2rem;
}

#pendingAccountModal li {
    margin-bottom: 0.3rem;
}

/* Header Styles */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background-color: var(--primary-green);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  color: #666;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-green);
}

.btn-connexion {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-connexion:hover {
  background-color: var(--primary-green-hover);
  color: white;
}

/* Login Container */
.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

/* Signup Container */
.signup-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.signup-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 700px;
}

.signup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signup-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.signup-header p {
  color: #666;
  font-size: 1rem;
}

/* Card Component */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.card-header p {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.card-header .icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Form Elements */
.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(15, 124, 97, 0.1);
}

.form-control.with-toggle {
  padding-right: 45px;
}

.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(15, 124, 97, 0.1);
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 1px solid #ddd;
}

.form-check-input:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.form-check-label {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Buttons */
.btn-login {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-login:hover {
  background-color: var(--primary-green-hover);
  color: white;
  transform: translateY(-1px);
}

.btn-signup {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-signup:hover {
  background-color: var(--primary-green-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary-green);
  border: none;
  padding: 0.875rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
  padding: 0.875rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Links */
.forgot-password {
  color: var(--agrimus-yellow);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.terms-link {
  color: var(--agrimus-yellow);
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.signup-link a {
  color: var(--agrimus-yellow);
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.login-link a {
  color: var(--agrimus-yellow);
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

.back-link {
  color: var(--agrimus-yellow);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
}

.divider span {
  background-color: white;
  padding: 0 1rem;
  position: relative;
  color: #999;
  font-size: 0.9rem;
}

/* Password Toggle */
.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  z-index: 5;
  padding: 5px;
}

.password-toggle i {
  font-size: 18px;
}

.password-toggle:hover {
  color: var(--primary-green);
}

/* Alert */
.alert {
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Success Box */
.success-box {
  text-align: center;
  padding: 2rem 0;
}

.success-box .icon {
  font-size: 4rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Grid Layout */
.row-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Utility Classes */
.mt-3 {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-header h1 {
    font-size: 1.75rem;
  }

  .signup-card {
    padding: 2rem 1.5rem;
  }

  .signup-header h1 {
    font-size: 1.75rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .row-two-cols {
    grid-template-columns: 1fr;
  }
}

   :root {
            --agrimus-green: #0d7f5e;
            --agrimus-green-dark: #0a6449;
            --agrimus-green-light: #10a37a;
            --border-color: #e0e0e0;
        }

        body {
            background-color: #f5f5f5;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }

        .container {
            max-width: 900px;
            margin-top: 30px;
            margin-bottom: 30px;
        }

        .card {
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .card-header {
            background-color: var(--agrimus-green);
            color: white;
            border-radius: 12px 12px 0 0 !important;
            padding: 1.5rem;
        }

        .card-header h3 {
            margin: 0;
            font-weight: 600;
        }

        .card-body {
            padding: 2rem;
        }

        .form-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 0.5rem;
        }

        .form-control,
        .form-select {
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--agrimus-green);
            box-shadow: 0 0 0 3px rgba(13, 127, 94, 0.1);
            outline: none;
        }

        .btn-primary-green {
            background-color: var(--agrimus-green);
            border-color: var(--agrimus-green);
            color: white;
            font-weight: 600;
            padding: 0.75rem 2rem;
            border-radius: 6px;
            transition: all 0.3s;
        }

        .btn-primary-green:hover {
            background-color: var(--agrimus-green-dark);
            border-color: var(--agrimus-green-dark);
            transform: translateY(-1px);
        }

        .btn-secondary {
            background-color: #6c757d;
            border-color: #6c757d;
            color: white;
            font-weight: 600;
            padding: 0.75rem 2rem;
            border-radius: 6px;
        }

        /* Upload section */
        .upload-section {
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            background-color: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upload-section:hover {
            background-color: #e9ecef;
            border-color: var(--agrimus-green);
        }

        .upload-icon {
            font-size: 3rem;
            color: var(--agrimus-green);
            margin-bottom: 1rem;
        }

        .upload-text {
            font-weight: 500;
            color: #333;
            margin-bottom: 0.5rem;
        }

        .upload-subtext {
            color: #6c757d;
            font-size: 0.9rem;
        }

        /* Photo preview */
        .photo-preview-container {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }

        .photo-preview {
            width: 120px;
            height: 120px;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            border: 2px solid var(--border-color);
        }

        .photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .remove-photo {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: rgba(220, 53, 69, 0.9);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .remove-photo:hover {
            background-color: #c82333;
        }

        /* Toast styles */
        .toast-container {
            z-index: 9999;
        }

        .toast {
            border-radius: 8px;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            margin-bottom: 10px;
        }

        .toast-header {
            border-radius: 8px 8px 0 0;
            border: none;
            padding: 0.75rem 1rem;
        }

        .toast-body {
            padding: 1rem;
        }

        /* Toast colors */
        .toast.bg-success {
            background-color: #198754 !important;
        }

        .toast.bg-danger {
            background-color: #dc3545 !important;
        }

        .toast.bg-warning {
            background-color: #ffc107 !important;
        }

        .toast.bg-info {
            background-color: #0dcaf0 !important;
        }

        .toast.bg-primary {
            background-color: #0d6efd !important;
        }

        /* Required field indicator */
        .required::after {
            content: " *";
            color: #dc3545;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                margin-top: 15px;
                margin-bottom: 15px;
            }

            .card-body {
                padding: 1.5rem;
            }

            .photo-preview {
                width: 100px;
                height: 100px;
            }
        }