body {
    font-family: Arial, sans-serif;
    background: url('loginbg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
}

.login-container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 700px;
    /* Reduced width for a narrower box */
    max-width: 100%;
}

.left-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.right-section {
    flex: 1;
    background: #372F7C;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 120px;
    margin-bottom: 20px;
}

.tagline {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

h2 {
    margin-bottom: 25px;
    color: #222;
    font-size: 24px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(240, 240, 240, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    align-self: flex-start;
}

input {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

button {
    padding: 12px 20px;
    background-color: #4c3db2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: #3a2d91;
    transform: translateY(-2px);
}

.error {
    color: red;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.success {
    color: #28a745;
    /* Sattes Grün für Bestätigungsmeldungen */
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.already-account {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 100%;
    max-width: 350px;
    margin: 15px auto 0;
}

.already-account a {
    color: #4c3db2;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

.already-account a:hover {
    text-decoration: underline;
    color: #3a2d91;
}

.illustration {
    width: 80%;
    max-width: 300px;
    border-radius: 8px;
}