@import url("main.css");

html,
body {
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.auth-container,
.login-container,
.register-container {
  width: 80%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.auth-card,
.login-card,
.register-card {
  width: 100%;
  width: 400px !important;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

h1 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.subtitle {
  margin: 0 0 1.5rem 0;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.name-row {
  display: flex;
  gap: 10px;
}

.name-row .form-group {
  flex: 1;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border: none;
}

button[type="submit"] {
  background-color: var(--accent-color);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #e6b72f;
}

a {
  color: var(--accent-color);
  font-weight: 500;
}

a:hover {
  color: #d4a91a;
}


@media (prefers-color-scheme: light) {

  .auth-card,
  .login-card,
  .register-card {
    background-color: var(--card-bg-light);
    box-shadow: 0 4px 15px var(--shadow-light);
  }
}


@media (prefers-color-scheme: dark) {

  .auth-card,
  .login-card,
  .register-card {
    background-color: var(--card-bg-dark);
    box-shadow: 0 4px 15px var(--shadow-dark);
  }

  .logo {
    content: url("../assets/logos/MindHiveDark.svg");
  }
}


@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
    max-width: 100%;
  }

  .logo {
    width: 100px;
    margin-bottom: 1rem;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
  }

  button[type="submit"] {
    font-size: 1rem;
    padding: 0.65rem 0.9rem;
  }
}

/* =========================================
   FULLSCREEN LOGIN — MOBILE LAYOUT
========================================= */
@media (max-width: 480px) {

  /* Remove the card wrapper entirely */
  .auth-card,
  .login-card,
  .register-card {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  /* Let the container fill the whole screen naturally */
  .auth-container,
  .login-container,
  .register-container {
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0;
    padding: 2rem 1.2rem !important;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto !important;
  }

  /* Logo smaller + spaced */
  .logo {
    width: 120px !important;
    margin: 2rem 0 1.5rem 0;
  }

  /* Headings centered and clean */
  h1 {
    font-size: 1.9rem;
    margin-bottom: 0.2rem;
  }

  .subtitle {
    margin-bottom: 1.8rem;
    font-size: 1rem;
    opacity: 0.9;
  }

  /* Inputs full width, more modern */
  input[type="email"],
  input[type="password"],
  input[type="text"] {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: none;
  }

  button[type="submit"] {
    margin-top: 0.8rem;
    padding: 0.85rem;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  /* Fix name-row stacking */
  .name-row {
    flex-direction: column;
    gap: 0.8rem;
  }
}