body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;   /* Λευκό background σε όλη την οθόνη */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;          /* σωστό για κινητά & desktop */
    margin: 0;
}

.login-container {
    width: 100%;
    height: 100%;                /* καλύπτει όλη την οθόνη */
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* κέντρο κάθετα */
    align-items: center;         /* κέντρο οριζόντια */
    padding: 2rem;
    box-sizing: border-box;
}

.logo {
    width: 160px;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-container h2 {
    font-size: 28px;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

form {
    width: 100%;
    max-width: 380px;   /* περιορίζει inputs να μην είναι υπερβολικά μεγάλα */
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

button {
    width: 100%;
    padding: 0.9rem;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-bottom: 1rem;
    text-align: center;
}

.forgot_links {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot_links a {
    display: block;
    margin-bottom: 0.7rem;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot_links a:hover {
    text-decoration: underline;
}

/* Responsive για κινητά */
/* Κινητά portrait */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    .login-container {
        max-width: 95%;
        padding: 1.5rem;
    }
    .logo {
        width: 200px;
    }
    .login-container h2 {
        font-size: 22px;
    }
}

/* Tablet ή μικρό laptop σε landscape */
@media only screen and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    .login-container {
        max-width: 70%;
        padding: 2rem;
    }
    .logo {
        width: 120px;
    }
    .login-container h2 {
        font-size: 24px;
    }
}

/* Τυπικό laptop (1024–1366px πλάτος, πάνω από 600px ύψος) */
@media only screen and (min-width: 1024px) and (max-width: 1367px) and (min-height: 600px) {
    .login-container {
        max-width: 400px;
    }
    .logo {
        width: 200px;
    }
}

/* Μεσαίες οθόνες (1367px – 1599px) */
@media only screen and (min-width: 1367px) and (max-width: 1599px) {
    .login-container {
        max-width: 450px;
    }
    .logo {
        width: 200px;
    }
}

/* Μεγάλες οθόνες (1600px – 1920px) */
@media only screen and (min-width: 1600px) and (max-width: 1920px) {
    .login-container {
        max-width: 500px;
        padding: 3rem; /* λίγο παραπάνω padding */
    }

    .logo {
        width: 220px;
        margin-bottom: 2rem;
    }

    .login-container h2 {
        font-size: 40px;
        margin-bottom: 2rem;
    }

    label {
        font-size: 25px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 25px;
        padding: 1rem;
    }

    button {
        font-size: 25px;
        padding: 1rem;
    }

    .forgot_links a {
        font-size: 25px;
    }
}

