/* Allgemeine Layout-Einstellungen */
body {
    background-color: #f3f4f6;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Animierter Hintergrund */
.animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.svg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../style/img_all/favicon.svg'); /* Beispielbild */
    background-size: 150px 150px;
    background-repeat: repeat;
    animation: move-svg 30s linear infinite;
    opacity: 0.05;
}

@keyframes move-svg {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 300px 300px;
    }
}

/* Login-Container */
.login-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 380px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-container img {
    width: 150px;
    margin-bottom: 20px;
}

/* Formularelemente */
.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.3s;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #4a90e2;
    background-color: #fff;
    outline: none;
}

.login-container input[type="submit"] {
    background-color: #FFF10B;
    color: #474746;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 90%;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.login-container input[type="submit"]:hover {
    background-color: #474746;
    color: #fff;
}

.login-container h2 {
  margin-top: 0px;
}

/* Fehlermeldung */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin: 10px 0;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF10B;
    border: 1px solid #474746;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    width: 100px;
    height: 100px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    color: #474746;
    margin-left: 5px;
    margin-right: 5px;
}

.icon-group {
  display: flex;
}

label {
  display: none;
}

.icon-button img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.icon-button:hover {
    background-color: #474746;
    color: #fff;
    border-color: #FFF10B;
}

/* Eingabe des 2FA-Codes */
.code-input {
    width: 100%;
}
.code-input p {
    margin-top: 0px;
}

.code-input input[type="text"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

.code-input input[type="text"]:focus {
    border-color: #4a90e2;
    background-color: #fff;
    outline: none;
}

.code-input input[type="submit"] {
    background-color: #FFF10B;
    color: #474746;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 90%;
    font-size: 1rem;
    margin-top: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.code-input input[type="submit"]:hover {
    background-color: #474746;
    color: #fff;
}

/* Mobile Ansicht Anpassungen */
@media (max-width: 600px) {
    .login-container {
        width: 95%;
        padding: 20px;
    }

    .login-container img {
        width: 120px;
    }

    .icon-button {
        width: 80px;
        height: 80px;
        padding: 10px;
    }

    .icon-button img {
        width: 30px;
        height: 30px;
    }
}
