body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    width: 300px;
}

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

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
}
<link rel="stylesheet" href="style.css">
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    width: 300px;
    text-align: center;
}

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

input {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    padding: 0.5rem;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}
.logo {
    width: 120px; /* adjust as needed */
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
<link rel="stylesheet" href="style.css">
.login-box {
    width: 300px; /* or whatever width you want */
    margin: 0 auto;
    text-align: center;
  }

  .login-box input,
  .login-box button {
    width: 100%; /* Makes both input and button the same width */
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box; /* ensures padding is included in width */
  }

  .login-box img {
    max-width: 150px;
    margin-bottom: 20px;
  }
