@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');


/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    background: #ffffff; /* plain white background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 10px; /* Prevents content from touching screen edges */
    height: auto; /* removes forced viewport height */
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
  }

.signup-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    border: 1px solid #3e8e41;

  }
  

/* Headings */
.signup-form h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    color: #2e7d32;
  }

.signup-form input,
.signup-form select {
    margin-bottom: 15px;
  }
  

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle i {
    font-size: 24px; 
    color: #2e7d32;
}


.signup-btn {
    width: 100%;
    background-color: #4caf50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

.signup-btn:hover {
    background-color: #388e3c;
  }

/* Back Button - Positioned at the Top Inside the Container */
.back-btn {
    position: absolute;
    top: 15px;
    left: 40px;
}

.back-btn button {
    background-color: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button i {
    margin-right: 5px; /* Spacing between icon and text */
}


.back-btn button:hover {
    background-color: #4CAF50;
    color: white;
}

/* Flash Messages */
.flash {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.flash.success { background-color: #4CAF50; color: white; }
.flash.danger { background-color: #f44336; color: white; }
.flash.info { background-color: #2196F3; color: white; }

.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

.input-group input,
.input-group select {
  width: 100%;
  box-sizing: border-box;
}

.address-row.center-name-row {
    margin-top: 5px; /* reduce space above */
  }
  
#centerName {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .input-group.center-name-group {
    flex: 1 1 calc(33.33% - 20px);
  }


.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
    text-align: left;
}

select, input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    outline: none;
  }

  .login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
  }
  
  .login-link a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
  }
  
  .login-link a:hover {
    text-decoration: underline;
  }
  


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 40px 30px;
    }

    .back-btn {
        top: 10px;
        left: 10px;
    }

    .back-btn button {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 30px;
    }

    input {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    .back-btn {
        top: 5px;
        left: 10px;
    }

    .back-btn button {
        font-size: 12px;
        padding: 5px 8px;
    }
}

.section-title {
  font-size: 18px;
  color: #2e7d32;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.left-column,
.right-column {
    flex: 1 1 100%; /* Stacked by default */
    min-width: 250px;
}

.right-column {
  flex: 1 1 48%;
  padding-left: 15px;  /* add space from the left */
  box-sizing: border-box;
}

.right-column .input-group {
  margin-left: 10px;
}

@media (min-width: 768px) {
  .left-column,
  .right-column {
    flex: 1 1 48%;
  }
}