﻿body, html {
    min-height: 100dvh;
    margin: 0;
}

body {
    min-height: 100vh; /* IMPORTANT */
    display: flex;
    align-items: center; /* centru vertical */
    justify-content: center; /* centru orizontal */
    background: url("../../Imagini/background.png") no-repeat center center fixed;
    background-size: cover;
}

#ErrorMesage {
    margin-bottom: 1rem;
    text-align: center; /* dacă vrei centrat */
}

    #ErrorMesage ul {
        list-style: none; /* elimină punctele */
        padding-left: 0; /* elimină spațiul stâng */
        margin: 0; /* elimină marginile */
    }

    #ErrorMesage li {
        margin: 0.2rem 0; /* dacă vrei puțin spacing între mesaje */
    }

/* Ascunde primul div dacă e necesar */
body > div:nth-child(1) {
    display: none;
}

/* Container pentru icon (Kendo) */
.iconForm {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#iconForm > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
    color: #fcb514;
}

.form-group {
    margin: 0.8rem 0;
}

#btnLogIn {
    height: 55px;
    font-size: 1rem;
}

/* Card login modern */
.login-div {
    width: 100%;
    max-width: 400px;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
}

    /* Logo centrat */
    .login-div img {
        margin-bottom: 1rem;
    }

    /* Titlu formular */
    .login-div h2 {
        font-weight: 600;
        margin-bottom: 1rem;
    }

    /* Input-uri Kendo modernizate */
    .login-div .form-control {
        height: 45px;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

        .login-div .form-control:focus {
            border-color: #fcb514;
            box-shadow: 0 0 5px rgba(252, 181, 20, 0.5);
        }

/* Buton login */
#btnLogIn {
    background-color: #fcb514;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    height: 50px;
    transition: background-color 0.3s;
}

    #btnLogIn:hover {
        background-color: #e0a800;
    }

/* Checkbox Kendo */
.k-checkbox-label {
    margin-left: 0.5rem;
}

/* Footer text */
body > div:nth-child(2) > footer {
    color: white;
    text-align: center;
    margin-top: 2rem;
}

.custom-alert {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    background-color: #f44336; /* roșu pentru eroare */
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    position: relative;
}

    .custom-alert.show {
        opacity: 1;
        transform: translateX(0);
    }

    .custom-alert .close-btn {
        position: absolute;
        top: 5px;
        right: 8px;
        cursor: pointer;
        font-weight: bold;
        color: white;
    }

/* Responsive pentru mobil */
@media (max-width: 576px) {
    .login-div {
        width: 95%;
        padding: 1.5rem;
        border-radius: 10px;
    }

    #btnLogIn {
        height: 45px;
        font-size: 0.9rem;
    }

    body {
        min-height: 100dvh;
    }
}
