* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    background: linear-gradient(to right, rgba(0, 0, 58, .6), rgba(45, 45, 120, .6));
}

.cont {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.form {
    background: #2d3250;
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    height: -webkit-fill-available;
}

.a {
    margin-bottom: 50px;
    font-size: .85em;
}

.a a {
    text-decoration: none;
    color: #f4f4f4;
}

.a>a:first-child {
    margin-right: 20px;

}

.border {
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #f9b17a;
    padding-bottom: 5px;
    display: inline;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type="submit"] {
    background-color: #f9b17a;
    color: #2d3250;
    border: none;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

input[type="submit"]:hover {
    background-color: #e89e5a;
}

h2 {
    margin-bottom: 20px;
}

label {
    display: none;
}

input::placeholder {
    color: #999;
}

input:focus::placeholder {
    color: transparent;
}

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: -webkit-fill-available;
    max-width: 400px;
    border-radius: 5px;
    background: linear-gradient(to right, rgb(0, 0, 58), rgb(45, 45, 120));
    border-top-left-radius: 0;
}

.welcome .szoveg {
    margin-top: 10px;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}

.welcome .szoveg p {
    margin-bottom: 15px;
}

.cont img {
    width: 100%;
    border-bottom-right-radius: 5px;
    flex: 1;
}

.classkep {
    width: 40px;
    height: auto;
    cursor: pointer;
}

.nyelv {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    top: 10px;
    right: 3%;
    margin-top: 10px;
}

.ua,
.hun {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.msg {
    position: fixed;
    top: 30px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    animation: slideIn 0.6s ease forwards,
        fadeOut 0.6s ease forwards 5s;
    z-index: 9999;
    font-size: 18px;
}

.msg-error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.msg-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

@keyframes slideIn {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(120%);
    }
}