

/* Utility visibility and modal styles */
.hidden { display: none; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
    width: 50%;
    box-sizing: border-box;
  margin: 10% auto;
  background-color: #7ac653;
  padding: 20px;
  border-radius: 8px;
}

@media (max-width: 700px) {
    .modal-content {
        width: 90%;
    }
}

.modal-content input[type=email],
.modal-content input[type=text], 
.modal-content input[type=password], 
.modal-content button[type=submit]{
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
}

#google-btn{
    margin-top: 20px;
}

/* .modal-content button{
    margin: 10px 0;
} */

#auth-close{
    border: none;
    background-color: transparent;
    color: green;
    font-size: 2rem;
}

.modal-content .error{
    text-align: center;
    color: red;
}

/* Auth modal tabs */
.tabs {
  display: flex;
  gap: var(--space-sm);
  /* margin-bottom: var(--space-md); */
}

.tab {
  flex: 1;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.tab.active {
  border-bottom: 2px solid var(--color-border);
  border: 1px solid #2e8b2e;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Inputs */
.input-dark {
  background-color: #000;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 48px 12px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Back home link */
.back-home { margin-top: var(--space-xxl); text-align: center; }
.back-home-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(255,255,255,0.3);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  text-decoration: none;
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
  transition: background-color 0.2s ease;
}
.back-home-link:hover { background-color: rgba(255,255,255,0.5); }

/* Progress indicator tokens */
.progress-bar { position: relative; height: 10px; background: #e0e0e0; border-radius: 5px; overflow: hidden; margin: 20px auto; max-width: 600px; width: 90%; }
.progress-bar-fill { height: 100%; background: var(--color-accent); width: 0; transition: width 0.5s ease; }
.step { height: 30px; width: 30px; border-radius: 50%; background: #d7d7c3; margin: 16px 0 10px; display: grid; place-items: center; color: var(--color-ink); position: relative; cursor: pointer; }
/* .step::after { content: ""; position: absolute; width: 197px; height: 3px; background: #d7d7c3; right: 30px; } */
.first::after { width: 0; height: 0; }
.step p { font-size: 18px; }
.modal-content form { 
    background: #2e8b2e; 
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
button.active {
    background-color: #2e8b2e;
}
li .active::after { background: var(--color-accent); }
.failed { background: var(--color-danger); }
.failed::after { background: var(--color-danger); }

/* Icon utilities: solid black with sizing */
.icon { display: inline-block; color: var(--color-ink); fill: currentColor; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }
.icon-xxl { width: 32px; height: 32px; }

/* Utility typography classes */
.h1 { font-size: var(--fs-xxl); font-family: var(--font-brand); }
.h2 { font-size: 1.4rem; font-weight: 600; }
.h3 { font-size: 1.2rem; font-weight: 600; }
.p-sm { font-size: var(--fs-sm); }

/* Form styling */

form {
    padding: 10px;
}

.form-container {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.form-footer {
  margin-top: 1rem;
  text-align: center;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .container { width: 95vw; padding: 15px; max-width: none; }
  h1.brand-style { font-size: var(--fs-xl); }
  
  /* Responsive form adjustments */
  .prompt-input {
    min-height: 100px;
    padding: 16px 70px 16px 16px;
    font-size: var(--fs-sm);
  }

  .submit-button {
    width: 50px;
    height: 50px;
    right: 10px;
  }

  .submit-button i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .container { width: 98vw; padding: 10px; }
  h1.brand-style { font-size: 2rem; }
  
  .prompt-input {
    min-height: 80px;
    padding: 14px 60px 14px 14px;
  }

  .submit-button {
    width: 45px;
    height: 45px;
    right: 8px;
  }

  .submit-button i {
    font-size: 16px;
  }
}
