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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #2e3e2f;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    margin: 2rem auto;
    text-align: center;
    padding-bottom: 2rem;
    flex: 1;
}

main form {
    width: 100%;
}

main input {
    padding: 10px 12px;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

main input::placeholder {
    color: #2e4d1e;
    font-style: italic;
}

main input:focus {
    outline: none;
    border-color: #2e4d1e;
    box-shadow: 0 0 5px rgba(75, 93, 50, 0.3);
}

main button {
    padding: 10px 12px;
    margin-top: 15px;
    width: 100%;
    font-size: 1rem;
    color: #ffffff;
    background: #2e4d1e;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

main button:hover {
    background: #244016;
    transform: translateY(-1px);
}

main button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#login-error {
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #c62828;
    background-color: #ffebee;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    letter-spacing: 0.5px;
}

.error-msg {
    font-weight: 700;
    font-size: 1rem;
}

.top-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

footer {
    flex-shrink: 0;
    background: #d8e6d8;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #2e3e2f;
}
