:root {
    --first-color: #28A745;
    --first-color-light: #F4F0FA;
    --text-color: #384551;
    --text-color-light: #A5A1AA;
    --body-color: #f5f5f5;
    --container-color: #FFFFFF;
    --light-gray-color: #E3E3E3;
    --hover-color: #f1f1f1; 
    --border-color: #ccc; 
    --line-color: #ddd;  
  

    --verde-oscuro: #28a745;
    --background-color: #f4f4f4;
    --form-bg-color: #fff;
    --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    --border-color: #ccc;
    --border-radius: 4px;
    --primary-hover: #218838;
    --text-color: #333;
    --label-font-size: 14px;
    --input-font-size: 14px;
    --button-font-size: 14px;
    --heading-font-size: 24px;
    --spacing-small: 5px;
    --spacing-medium: 10px;
    --spacing-large: 15px;
    --spacing-xl: 20px;
    --form-max-width: 1000px;
    --form-padding: 20px;

    --box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    --font-size: clamp(0.875rem, 1.125vw, 1.125rem);
    --font-weight-th: 600;
    --font-size-th: clamp(16px, 1.5vw + 0.2rem, 18px);  
    --font-size-title: clamp(1.25rem, 2vw + 0.5rem, 2rem);

    --pading-general: clamp(20px, 4vw, 50px);
    --pading-general2: clamp(40px, 10vw, 150px);
  }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "Open Sans", sans-serif, Arial;
}

*, *::before, *::after {box-sizing: border-box;}

main{
  display: flex;
  justify-content: center;  
  align-items: center;      
  min-height: 100vh;        
  padding-left: var(--pading-general2); 
  padding-right: var(--pading-general2);
}
  .container {
    width: 100%;
    max-width: 1500px;
    margin-left: var(--pading-general);
    margin-right: var(--pading-general);
    background: #fff;
    padding: 30px;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    position: relative;
  }

  h1 {
    margin-bottom: var(--spacing-xl);
    font-size: var(--heading-font-size);
    text-align: left;
    font-weight: normal;
    color: var(--first-color);
    font-family: var(--font-subtittle);
}

.span{font-size: var(--font-size);}

  .logo-wrapper {
    position: absolute;
    top: 30px;
    right: 30px;
  }

  .logo-img {
    width: 65px;
    height: auto;
  }

  .form-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
  }

  .form-fields {flex: 2; }

  .form-fields h2 {
    font-family: 'Poppins', sans-serif;
    color: #2e7d32;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .form-fields p {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .input-box {
    display: flex;
    flex-direction: column;
  }

  .input-box label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: var(--font-size);
  }
  .input-box input, .input-box select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
  }

  .photo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 60px;
  }

  .photo-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    margin-bottom: 15px;
  }

  .photo-upload {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .submit-section {
    margin-top: 30px;
    text-align: center;
  }

 .button {
    background-color: #2e7d32;
    color: white;
    font-family: 'Open Sans', sans-serif;
    padding: 10px 25px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

 .button:hover {background-color: #1b5e20;}

  .login-link {
    margin-top: 10px;
    font-size: 14px;
  }

  .login-link a {
    color: #2e7d32;
    text-decoration: none;
  }

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

  .error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
  }

  label:not(.star-icon label) {
    display: block;
    font-weight: normal;
    font-size: var(--label-font-size);
    color: var(--text-color);
    margin-bottom: var(--spacing-small);
  }
  input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: var(--spacing-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--input-font-size);
    color: var(--text-color);
    font-family: inherit;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
    
  input[type="text"]:focus, textarea:focus, select:focus {
    border-color: var(--verde-oscuro);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
    outline: none;
  }
  button {
    background-color: var(--verde-oscuro);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: var(--spacing-medium) var(--spacing-xl);
    cursor: pointer;
    font-size: var(--button-font-size);
    transition: background-color 0.3s ease;
  }
  
  button:hover {background-color: var(--primary-hover);}
    

  @media screen and (max-width: 768px) {
    .form-section {
      flex-direction: column;
    }

    .form-group {
      grid-template-columns: 1fr;
    }

    .logo-wrapper {
      position: static;
      align-self: flex-end;
      margin-bottom: 20px;
    }

    .photo-section {
      margin-top: 30px;
    }
  }

  @media (min-width: 1600px) {
  :root {
    --font-size: 1.09375rem;
    --font-size-medium: 1rem;
    --font-size-small: 0.9375rem;

    --h1-font-size: 3.2rem;
    --h2-font-size: 2.7rem;
    --h3-font-size: 2.2rem;
    --h4-font-size: 1.9rem;
    --h5-font-size: 1.6rem;
    --h6-font-size: 1.3rem;
  }
}
  