/* General Page Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fff;
}

.dot-wrapper {
  position: relative;
  width: 100vw;        /* fill viewport width */
  max-width: 600px;    /* cap at desktop */
  aspect-ratio: 2 / 3; /* match your image’s 600x900 ratio */
  margin: auto;
}

.dot-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep motif exact */
}

.login-form {
  position: absolute;
  top: 21%;   /* relative anchor */
  left: 51%;  /* relative anchor */
  transform: translate(-50%, -50%);
  text-align: center;
  width: 60%;
}

.login-title {
  font-size: 25px;  /* reduced from 2vw */
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px #000;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  max-height: 20px;
  max-width: 170px;   /* independent cap */
  margin:3px auto ;
  padding: 1px ;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.85rem;
  
}

/* Login button */
.login-button {
  display: block;
  width: 80%;         /* narrower than inputs */
  max-width: 120px;   /* independent cap */
 margin: 20px auto 6px auto;
  padding-top: 6px 0;
  border-radius: 3px;
  font-size: 0.85rem;
  background: #28a745;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}



.login-button:hover {
  background: #218838;
}

.help-block {
  font-size: 1.00rem;
  padding: 2px;     /* optional gap below */
 
}

.help-block a {
  color: #fff;       /* white forgot password link */
  text-decoration: underline;
  
}

.alert-danger {
  color: #fff;
  background-color: #d9534f;
  padding: 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}





/* Dropdown Styles */
.file_dropdown {
  position: relative;
  display: inline-block;
}

.file_dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}

.file_dropdown:hover .file_dropdown-content {
  display: block;
}

/* Scaling wrapper: keeps everything identical at full size */
.scale-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;   /* full viewport height */
  width: 100vw;    /* full viewport width */
}

/* Default: no scale at desktop */
.dot-wrapper {
  transform: scale(1);
  transform-origin: center center; /* scale from center */
}

/* Tablet screens */
@media (max-width: 1200px) {
  .dot-wrapper {
    transform: scale(1);
  }
}

/* Small tablets / large phones */
@media (max-width: 900px) {
  .dot-wrapper {
    transform: scale(1);
  }
}

/* Phones */
@media (max-width: 600px) {
  .dot-wrapper {
    transform: scale(1);
  }
}

/* Mobile fallback: under 600px */
@media (max-width: 600px) {
  /* Hide the complex motif image */
  .dot-image {
    display: none;
  }

  /* Turn the wrapper into a green dot */
  .dot-wrapper {
    aspect-ratio: 1 / 1;          /* square */
    width: 80vw;                  /* fit viewport */
    max-width: 360px;             /* cap for phones */
    margin: auto;
    background: radial-gradient(circle at center, #25b44a 0%, #25b44a 65%, #1e8f3a 100%);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    position: relative;
  }

  /* Center the login inside the dot */
  .login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;                   /* relative to dot */
    text-align: center;
  }

  .login-title {
    font-size: clamp(30px, 5vw, 42px);
    color: #fff;
    margin-bottom: 0.6em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  }

  input[type="text"],
  input[type="email"],
  input[type="password"] {
    width: 100%;
	max-width: none;  /* remove the cap */

    margin: 0.35em auto;
    padding: 0.55em 0.75em;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 6px;
    font-size: clamp(14px, 3.8vw, 18px);
    background: rgba(255,255,255,0.92);
    box-sizing: border-box;
  }

  .login-button {
    width: 80%;
    margin: 1em auto 0.6em auto;
    padding: 0.65em 0;
    border-radius: 6px;
    font-size: clamp(14px, 3.8vw, 18px);
    background: #1e8f3a;
    color: #fff;
    font-weight: 700;
    border: none;
  }

  .help-block,
  .alert-danger {
    font-size: clamp(12px, 3.5vw, 16px);
    color: #fff;
  }

  .alert-danger {
    background-color: rgba(217,83,79,0.95);
    padding: 0.6em;
    border-radius: 6px;
    margin-bottom: 0.7em;
  }

  .help-block a {
    color: #fff;
    text-decoration: underline;
  }
}