/* Default reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in width calculations */
}

html,
body {
    width: 100%; /* Set width to 100% */
    min-height: 100vh; /* Ensures the body takes at least the full height of the viewport */
    -ms-overflow-style: none;
    scroll-behavior: auto !important; /* Disables smooth scrolling */
}

body {
    min-height: 100vh !important; /* Allows the body to expand if necessary */
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1rem;
}

/* Hide scrollbar for Chrome, Safari, and Edge */
::-webkit-scrollbar {
    display: none;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

h2,
h3,
h4 {
    margin: 0 !important;
}

ul,
ol {
    list-style: none; /* Removes bullet points and numbering */
}

table {
    border-collapse: collapse; /* Removes space between table cells */
}

a {
    text-decoration: none; /* Removes underline from links */
    color: inherit; /* Sets the link color equal to the surrounding text */
}

layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Keeps the container height fixed to the viewport */
    width: 100%;
    background-color: #151a2c;
    overflow: hidden; /* Prevents unwanted overflow */
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.login-card {
    background: rgba(21, 26, 44, 0.1); /* Semi-trasparente */
    backdrop-filter: blur(10px); /* Effetto vetro */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 750px;
    height: auto;
    text-align: center;
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 0;
    border-radius: 10px;
    outline: none;
    background: #151a2c;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
}


.input-group input:focus {
    border-color: #4c9cb9; /* Blu personalizzato */
    background: rgba(76, 156, 185, 0.3);
    box-shadow: 0 0 5px rgba(76, 156, 185, 0.5);
}

.input-group input:not(:placeholder-shown) {
    border: 2px solid #4c9cb9; /* Colore del bordo quando c'è testo */
}

.submit-btn {
    width: 80%;
    padding: 15px;
    background-color: #4c9cb9; /* Blu personalizzato */
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #3b7e96; /* Una tonalità più scura per l'hover */
}

button:hover {
    background-color: #4c9cb9;
      border-color: #4c9cb9;
      box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
      transform: translateY(-2px);
}

button:active {
    background-color: #4c9cb9;
      border-color: #4c9cb9;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 15px;
    font-weight: bold;
}