/* login.css */

/* Inherit global variables from homeStyle.css */
:root {
  --bg: #111214;
  --text: #f6f1eb;
  --accent: #e23a3a;
  --gray: #9fa6ac;
  --highlight: #ffd369;
  --border-radius: 1rem;
  --header-height: 80px;
}


body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Wrapper to push content below the floating header and center it */
.login-page {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
}

/* The login form container */
.login-box {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  width: 90%;         /* 90% width on mobile */
  max-width: 400px;   /* up to 400px on larger screens */
/*  transform: translateY(-10%);*/

}

/* Title */
.login-box .text {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--highlight);
  text-shadow: 1px 1px 2px #000;
}

/* Form fields */
.login-box .data {
  margin-bottom: 1rem;
}
.login-box .data label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.login-box .data input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--gray);
  border-radius: 0.5rem;
  background-color: #222;
  color: var(--text);
}

/* Forgot password link */
.login-box .forgot-pass {
  text-align: right;
  margin-bottom: 1rem;
}
.login-box .forgot-pass a {
  color: var(--highlight);
  text-decoration: none;
  font-size: 0.9rem;
}
.login-box .forgot-pass a:hover {
  color: var(--accent);
}

/* Submit button */
.login-box .btn button {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  text-transform: uppercase;
}
.login-box .btn button:hover {
  opacity: 0.9;
}

/* Signup link */
.login-box .signup-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray);
}
.login-box .signup-link a {
  color: var(--highlight);
  text-decoration: none;
}
.login-box .signup-link a:hover {
  color: var(--accent);
}

/* Responsive tweaks for small screens */
@media (max-width: 480px) {
  .login-box {
    padding: 1rem;
  }
  .login-box .text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .login-box .btn button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}
