html, body {
  width: 100%;
  overflow-x: hidden; /* prevents sideways scrolling */
}
img, video, iframe {
  max-width: 100%;
  height: auto;
}

body
{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-image: url(background.jpg);
    background-size: cover;
    background-position: center;
}
.sign-up-form
{
   /* width: 500px;
    height: 400px;
    box-shadow: 0 0 3px 0 rgba(0,0,0,0.3);
    background: #ffffff;
    padding: 20px;
    margin: 1% auto 0;
    text-align: center;
    margin: 10px;
    margin-bottom: 10px;
    */
    width: 100%;
    max-width: 500px;   /* keeps it nice on desktop */
    height: auto;        /* don't lock height on mobile */
    box-shadow: 0 0 3px 0 rgba(0,0,0,0.3);
    background: #ffffff;
    padding: 20px;
    margin: 10px auto;   /* center it */
    text-align: center;
}
.sign-up-form p { 
  color: #111;   /* black text on white card */
}

.sign-up-form p a {
  color: #0ea5e9; /* link color */
}
.sign-up-form h1
{
    color: #060708;
    margin-bottom: 5px;
}
.input-box
{
    border-radius: 20px;
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    border: 1px solid #999;
    outline: none;
    margin-bottom: 1px;

}
.check-box
{
   accent-color: #0ea5e9; /* brand blue */
}
button
{
    color: #0c0b0b;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    margin: 5px 0;
    border: none;
    outline: none;
    cursor: pointer;

}
.signup-btn
{
    background-color: #52b4fa;
    margin-bottom: 2px;

}
.google-btn
{
    background-color: rgb(99, 170, 99);
}
a
{
    text-decoration: none;
}
h1
{
    margin-top: 0px;
    width: 100%;

}

.or
{
    background: #fff;
    width: 30px;
    margin: -19px auto 10px;
}
img
{
    width: 120px;
    margin-top: -35px;
    margin-bottom: 1px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal box */
.modal {
  background: #0f172a;
  color: #e5e7eb;
  max-width: 600px;
  width: 92%;

  /* 🔑 Critical fixes */
  max-height: 85vh;        /* never exceed viewport height */
  overflow: hidden;        /* contain scrolling inside */

  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  display: flex;
  flex-direction: column;

  padding-top: 3rem; /* makes room for the X */
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;          /* overrides button { width:100% } */
  height: 36px;
  padding: 0;           /* overrides button padding */

  display: grid;
  place-items: center;

  background: transparent;
  border: none;
  border-radius: 8px;

  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.modal h2 {
  margin-top: 0;
}

.modal-content {
  overflow-y: auto;        /* scroll inside modal */
  padding-right: 0.5rem;   /* space for scrollbar */
  flex: 1;                 /* take remaining height in .modal */
  min-height: 0;           /* IMPORTANT so flex scrolling works */
}

.modal-content p {
  line-height: 1.5;
}
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}
body.modal-open {
  overflow: hidden;
}