﻿html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
}

.logincontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loginform {
    background: #ffffff;
    width: 400px;
    max-width: 90%;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

    .loginform h2 {
        font-size: 32px;
        margin-bottom: 30px;
        color: #064ea0;
    }

    .loginform label {
        display: block;
        text-align: left;
        margin-bottom: 5px;
        color: #064ea0;
        font-weight: 600;
    }

    .loginform input[type="text"],
    .loginform input[type="password"] {
        width: 100%;
        padding: 12px;
        margin-bottom: 20px;
        border: 1px solid #ccd6e0;
        border-radius: 6px;
        outline: none;
        font-size: 16px;
    }

        .loginform input[type="text"]:focus,
        .loginform input[type="password"]:focus {
            border-color: #0075c9;
            box-shadow: 0 0 5px rgba(0,117,201,0.3);
        }

    .loginform input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 18px;
        border: none;
        border-radius: 8px;
        background: linear-gradient(to right, #003a78, #0075c9);
        color: white;
        cursor: pointer;
        transition: 0.3s;
    }

        .loginform input[type="submit"]:hover {
            background: linear-gradient(to right, #0075c9, #003a78);
        }

#errormsg {
    color: red;
    margin-top: 15px;
    min-height: 20px;
}

@media (max-height: 600px) {
    .logincontainer {
        align-items: flex-start;
        padding-top: 20px;
    }
}
