/* Login Container - Responsive Layout */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.login_box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    z-index: 1;
}

.login_box > div {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.login_banner {
    flex: 2;
    min-height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
}

/* Form Styling */
.form-group {
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login_logo {
    height: 4rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #002339;
}

#result {
    color: #e62d38;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
    font-size: 14px;
}

button[type="submit"],
#loginWithCodeButton {
    width: 100%;
    background-color: #002339;
    color: white;
    padding: 14px 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px;
    font-size: 16px;
}

button[type="submit"]:hover,
#loginWithCodeButton:hover {
    background-color: #003d5c;
}

button[type="submit"]:active,
#loginWithCodeButton:active {
    transform: scale(0.98);
}

/* Tablet und kleiner */
@media (max-width: 1024px) {
    .login_banner {
        flex: 1;
    }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .login_banner {
        order: 1;
        flex: none;
        min-height: 25vh;
        max-height: 25vh;
        width: 100%;
    }
    
    .login_box {
        order: 2;
        flex: 1;
        min-height: 75vh;
        padding: 0;
    }
    
    .login_box > div {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .login_logo {
        height: 3rem;
        max-width: 160px;
    }
    
    .form-group {
        gap: 0.875rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    button[type="submit"],
    #loginWithCodeButton {
        padding: 16px 1rem;
        font-size: 16px;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 480px) {
    .login_box > div {
        padding: 1rem;
    }
    
    .login_banner {
        min-height: 20vh;
        max-height: 20vh;
    }
    
    .login_box {
        min-height: 80vh;
    }
    
    .login_logo {
        height: 2.5rem;
        max-width: 140px;
    }
}

/* Legacy Styles - Falls noch verwendet */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

fieldset {
    padding: 1rem 0rem;
    border: none;
}

fieldset:nth-of-type(2) {
    border-top: 10px solid #e5e8eb;
}

fieldset p {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
    margin-top: 0rem;
}

#company-data-form {
    position: sticky;
    top: 12rem;
}

#number_wrapper {
    background-color: #f7f8f9;
    padding: 11px 15px;
    border-radius: 4px;
    width: 100%;
    height: fit-content;
    text-align: center;
}