/* Basic layout */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: #f7f9fc;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #333;
}

/* Card container */
.container {
  background: white;
  padding: 2.5rem 3rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* Titles */
h2 {
  margin-bottom: 1.2rem;
  color: #2d4a8a;
}

/* Form elements */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="password"],
input[name="ip"] {
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #2d4a8a;
  box-shadow: 0 0 5px rgba(45, 74, 138, 0.2);
}

/* Buttons */
button {
  background-color: #2d4a8a;
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #1f3768;
}

/* Links */
a {
  color: #2d4a8a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Flash messages */
ul {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
}
li {
  color: #d33;
  font-weight: bold;
  font-size: 0.9rem;
}

.logo {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 400px;       /* Larger default size */
  width: 40%;             /* Scales with container */
  height: auto;           /* Keep aspect ratio */
  transition: transform 0.2s ease-in-out;
}

.logo:hover {
  transform: scale(1.05); /* Subtle hover animation */
}
