/* Example for static/css/login.css */

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Background styling */
body {
  background: url("/static/images/bg.png") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Semi-transparent overlay to soften the background */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(3px);
  z-index: 0;
}

/* Login container */
.login-container {
  position: relative;
  z-index: 1;
  width: 90%;              /* Changed from fixed 350px to percentage for responsiveness */
  max-width: 400px;        /* Maximum width to prevent it from stretching too much on large screens */
  padding: 2rem;
  background: rgba(255,255,255, 0.85);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
}

/* Logo style */
.logo {
  width: 80px;
  margin-bottom: 1rem;
}

/* Headings */
.login-container h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #444;
}

/* Form labels and inputs */
label {
  display: block;
  text-align: left;
  margin: 0.5rem 0 0.25rem 0;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

button {
  width: 100%;              /* Make button full-width on small screens */
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #6c63ff;      /* Your brand color */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #5548c8;
}

/* Flash / error messages */
.error-messages {
  color: #d40000;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: left;
}

/* Media Queries for Mobile Devices */
@media (max-width: 600px) {
  /* Adjust padding for smaller screens */
  .login-container {
    padding: 1.5rem;
  }

  /* Smaller logo on mobile */
  .logo {
    width: 60px;
    margin-bottom: 1rem;
  }

  /* Smaller font sizes */
  .login-container h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  label {
    margin: 0.4rem 0 0.2rem 0;
    font-size: 0.95rem;
  }

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

  button {
    padding: 0.6rem;
    font-size: 0.95rem;
  }

  /* Error messages font size */
  .error-messages {
    font-size: 0.85rem;
  }
}
